text: (function(a){a.breakpoint={els:a(),init:!1};a.fn.breakpoint=function(){a.breakpoint.els=a.breakpoint.els.add(this);if(!a.breakpoint.init)a(window).on("resize.breakpoint",function(){a.breakpoint.els.trigger("swapres.breakpoint")});return this.each(function(){var g=a(this),f=[],c=[];g.data("m1src",g.attr("src"));a.each(g.data(),function(a,e){if(a&&(0===a.toLowerCase().indexOf("maxwidth")||0===a.toLowerCase().indexOf("minwidth"))){var d=a.substring(3).match(/\d+/g);1===d.length&&(d={key:a,type:0===a.toLowerCase().indexOf("max")?
  "max":"min",width:d[0]},"max"===d.type?f.push(d):c.push(d))}});c.sort(function(a,e){return a.width-e.width});f.sort(function(a,e){return e.width-a.width});g.on("swapres.breakpoint",function(){if(0<f.length||0<c.length){var b=a(window).width(),e=null;a.each(f,function(a,h){b<=h.width&&(e=h)});a.each(c,function(a,h){b>=h.width&&(e=h)});null!=e?g.attr("src",g.data(e.key)):g.attr("src",g.data("m1src"))}else g.attr("src",g.data("m1src"))}).trigger("swapres.breakpoint")})}})(jQuery);(function(a){a.hisrc={bandwidth:null,connectionTestResult:null,connectionKbps:null,connectionType:null,devicePixelRatio:null};a.hisrc.defaults={useTransparentGif:!1,transparentGifSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAMz/AAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",minKbpsForHighBandwidth:300,speedTestUri:"https://static.c-span.org/assets/documents/50k",speedTestKB:51.2,speedTestExpireMinutes:30,forcedBandwidth:!1};a.hisrc.speedTest=function(){a(window).hisrc()};a.fn.hisrc=function(g){var f=a.extend({callback:function(){}},
  a.hisrc.defaults,g),c=a(this),b=navigator.connection||{type:0},e=3==b.type||4==b.type||/^[23]g$/.test(b.type);a.hisrc.devicePixelRatio=1;if(void 0!==window.devicePixelRatio)a.hisrc.devicePixelRatio=window.devicePixelRatio;else if(void 0!==window.matchMedia)for(g=1;2>=g;g+=.5)window.matchMedia("(min-resolution: "+g+"dppx)").matches&&(a.hisrc.devicePixelRatio=g);var d=f.speedTestUri,h,k=function(d,b){if("complete"!==h){h="complete";a.hisrc.connectionTestResult=d;try{b||(b=f.speedTestExpireMinutes);
  var e={kbps:a.hisrc.connectionKbps,bw:a.hisrc.bandwidth,exp:(new Date).getTime()+6E4*b};localStorage.setItem("fsjs",JSON.stringify(e))}catch(k){}c.trigger("speedTestComplete.hisrc")}},m=function(a,d){f.useTransparentGif?a.attr("src",f.transparentGifSrc).css("max-height","100%").css("max-width","100%").css("background",'url("'+d+'") no-repeat 0 0').css("background-size","contain"):a.attr("src",d)};f.callback.call(this);c.each(function(){var d=a(this);d.data("m1src")||d.data("m1src",d.attr("src"));
  !d.attr("width")&&0<d.width()&&d.attr("width",d.width());!d.attr("height")&&0<d.height()&&d.attr("height",d.height());d.on("speedTestComplete.hisrc",function(){"complete"===h&&(e?d.attr("src",d.data("m1src")):1<a.hisrc.devicePixelRatio&&"high"===a.hisrc.bandwidth?m(d,d.data("2x")):m(d,d.data("1x")),d.off("speedTestComplete.hisrc"))})});(function(){if(!h)if(f.forcedBandwidth)a.hisrc.bandwidth=f.forcedBandwidth,a.hisrc.connectionTestResult="forced",h="complete",c.trigger("speedTestComplete.hisrc");
  else if(1===a.hisrc.devicePixelRatio)a.hisrc.connectionTestResult="skip",h="complete",c.trigger("speedTestComplete.hisrc");else if(a.hisrc.connectionType=b.type,e)a.hisrc.connectionTestResult="connTypeSlow",h="complete",c.trigger("speedTestComplete.hisrc");else{try{var m=JSON.parse(localStorage.getItem("fsjs"));if(null!==m&&(new Date).getTime()<m.exp){a.hisrc.bandwidth=m.bw;a.hisrc.connectionKbps=m.kbps;a.hisrc.connectionTestResult="localStorage";h="complete";c.trigger("speedTestComplete.hisrc");
  return}}catch(g){}var m=document.createElement("img"),p,n;m.onload=function(){p=(new Date).getTime();var d=(p-n)/1E3;a.hisrc.connectionKbps=8192*f.speedTestKB/(1<d?d:1)/1024;a.hisrc.bandwidth=a.hisrc.connectionKbps>=f.minKbpsForHighBandwidth?"high":"low";k("networkSuccess")};m.onerror=function(){k("networkError",5)};m.onabort=function(){k("networkAbort",5)};n=(new Date).getTime();h="loading";"https:"===document.location.protocol&&(d=d.replace("http:","https:"));m.src=d+"?r="+Math.random();setTimeout(function(){k("networkSlow")},
  8*f.speedTestKB/f.minKbpsForHighBandwidth*1E3+350)}})();return c}})(jQuery);(function(a,g){function f(d,b){var e,f;e=d.nodeName.toLowerCase();if("area"===e){e=d.parentNode;f=e.name;if(!d.href||!f||"map"!==e.nodeName.toLowerCase())return!1;e=a("img[usemap=#"+f+"]")[0];return!!e&&c(e)}return(/input|select|textarea|button|object/.test(e)?!d.disabled:"a"===e?d.href||b:b)&&c(d)}function c(d){return a.expr.filters.visible(d)&&!a(d).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var b=0,e=/^ui-id-\d+$/;a.ui=a.ui||{};a.extend(a.ui,{version:"1.10.3",
  keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});a.fn.extend({focus:function(d){return function(b,e){return"number"===typeof b?this.each(function(){var d=this;setTimeout(function(){a(d).focus();e&&e.call(d)},b)}):d.apply(this,arguments)}}(a.fn.focus),scrollParent:function(){var d;d=
  a.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,"position"))&&/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0);return/fixed/.test(this.css("position"))||!d.length?a(document):
  d},zIndex:function(d){if(d!==g)return this.css("zIndex",d);if(this.length){d=a(this[0]);for(var b;d.length&&d[0]!==document;){b=d.css("position");if("absolute"===b||"relative"===b||"fixed"===b)if(b=parseInt(d.css("zIndex"),10),!isNaN(b)&&0!==b)return b;d=d.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++b)})},removeUniqueId:function(){return this.each(function(){e.test(this.id)&&a(this).removeAttr("id")})}});a.extend(a.expr[":"],{data:a.expr.createPseudo?
  a.expr.createPseudo(function(d){return function(b){return!!a.data(b,d)}}):function(d,b,e){return!!a.data(d,e[3])},focusable:function(d){return f(d,!isNaN(a.attr(d,"tabindex")))},tabbable:function(d){var b=a.attr(d,"tabindex"),e=isNaN(b);return(e||0<=b)&&f(d,!e)}});a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(d,b){function e(d,b,h,k){a.each(c,function(){b-=parseFloat(a.css(d,"padding"+this))||0;h&&(b-=parseFloat(a.css(d,"border"+this+"Width"))||0);k&&(b-=parseFloat(a.css(d,"margin"+
  this))||0)});return b}var c="Width"===b?["Left","Right"]:["Top","Bottom"],f=b.toLowerCase(),p={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+b]=function(d){return d===g?p["inner"+b].call(this):this.each(function(){a(this).css(f,e(this,d)+"px")})};a.fn["outer"+b]=function(d,c){return"number"!==typeof d?p["outer"+b].call(this,d):this.each(function(){a(this).css(f,e(this,d,!0,c)+"px")})}});a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==
  a?this.prevObject:this.prevObject.filter(a))});a("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(d){return function(b){return arguments.length?d.call(this,a.camelCase(b)):d.call(this)}}(a.fn.removeData));a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());a.support.selectstart="onselectstart"in document.createElement("div");a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",
  function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.extend(a.ui,{plugin:{add:function(d,b,e){var c;d=a.ui[d].prototype;for(c in e)d.plugins[c]=d.plugins[c]||[],d.plugins[c].push([b,e[c]])},call:function(a,b,e){var c=a.plugins[b];if(c&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(b=0;b<c.length;b++)a.options[c[b][0]]&&c[b][1].apply(a.element,e)}},hasScroll:function(d,b){if("hidden"===a(d).css("overflow"))return!1;var e=
  b&&"left"===b?"scrollLeft":"scrollTop",c;if(0<d[e])return!0;d[e]=1;c=0<d[e];d[e]=0;return c}})})(jQuery);
  (function(a,g){var f=0,c=Array.prototype.slice,b=a.cleanData;a.cleanData=function(e){for(var d=0,h;null!=(h=e[d]);d++)try{a(h).triggerHandler("remove")}catch(k){}b(e)};a.widget=function(b,d,h){var k,c,f,g,n={},q=b.split(".")[0];b=b.split(".")[1];k=q+"-"+b;h||(h=d,d=a.Widget);a.expr[":"][k.toLowerCase()]=function(d){return!!a.data(d,k)};a[q]=a[q]||{};c=a[q][b];f=a[q][b]=function(a,d){if(!this._createWidget)return new f(a,d);arguments.length&&this._createWidget(a,d)};a.extend(f,c,{version:h.version,
  _proto:a.extend({},h),_childConstructors:[]});g=new d;g.options=a.widget.extend({},g.options);a.each(h,function(b,e){a.isFunction(e)?n[b]=function(){var a=function(){return d.prototype[b].apply(this,arguments)},h=function(a){return d.prototype[b].apply(this,a)};return function(){var d=this._super,b=this._superApply,k;this._super=a;this._superApply=h;k=e.apply(this,arguments);this._super=d;this._superApply=b;return k}}():n[b]=e});f.prototype=a.widget.extend(g,{widgetEventPrefix:c?g.widgetEventPrefix:
  b},n,{constructor:f,namespace:q,widgetName:b,widgetFullName:k});c?(a.each(c._childConstructors,function(d,b){var e=b.prototype;a.widget(e.namespace+"."+e.widgetName,f,b._proto)}),delete c._childConstructors):d._childConstructors.push(f);a.widget.bridge(b,f)};a.widget.extend=function(b){for(var d=c.call(arguments,1),h=0,k=d.length,f,l;h<k;h++)for(f in d[h])l=d[h][f],d[h].hasOwnProperty(f)&&l!==g&&(a.isPlainObject(l)?b[f]=a.isPlainObject(b[f])?a.widget.extend({},b[f],l):a.widget.extend({},l):b[f]=l);
  return b};a.widget.bridge=function(b,d){var h=d.prototype.widgetFullName||b;a.fn[b]=function(k){var f="string"===typeof k,l=c.call(arguments,1),p=this;k=!f&&l.length?a.widget.extend.apply(null,[k].concat(l)):k;f?this.each(function(){var d,c=a.data(this,h);if(!c)return a.error("cannot call methods on "+b+" prior to initialization; attempted to call method '"+k+"'");if(!a.isFunction(c[k])||"_"===k.charAt(0))return a.error("no such method '"+k+"' for "+b+" widget instance");d=c[k].apply(c,l);if(d!==
  c&&d!==g)return p=d&&d.jquery?p.pushStack(d.get()):d,!1}):this.each(function(){var b=a.data(this,h);b?b.option(k||{})._init():a.data(this,h,new d(k,this))});return p}};a.Widget=function(){};a.Widget._childConstructors=[];a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(b,d){d=a(d||this.defaultElement||this)[0];this.element=a(d);this.uuid=f++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=a.widget.extend({},
  this.options,this._getCreateOptions(),b);this.bindings=a();this.hoverable=a();this.focusable=a();d!==this&&(a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,
  _init:a.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.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:a.noop,widget:function(){return this.element},
  option:function(b,d){var h=b,k,c,f;if(0===arguments.length)return a.widget.extend({},this.options);if("string"===typeof b)if(h={},k=b.split("."),b=k.shift(),k.length){c=h[b]=a.widget.extend({},this.options[b]);for(f=0;f<k.length-1;f++)c[k[f]]=c[k[f]]||{},c=c[k[f]];b=k.pop();if(d===g)return c[b]===g?null:c[b];c[b]=d}else{if(d===g)return this.options[b]===g?null:this.options[b];h[b]=d}this._setOptions(h);return this},_setOptions:function(a){for(var d in a)this._setOption(d,a[d]);return this},_setOption:function(a,
  d){this.options[a]=d;"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!d).attr("aria-disabled",d),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"));return this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(b,d,h){var k,c=this;"boolean"!==typeof b&&(h=d,d=b,b=!1);h?(d=k=a(d),this.bindings=this.bindings.add(d)):(h=d,d=this.element,k=
  this.widget());a.each(h,function(h,f){function g(){if(b||!0!==c.options.disabled&&!a(this).hasClass("ui-state-disabled"))return("string"===typeof f?c[f]:f).apply(c,arguments)}"string"!==typeof f&&(g.guid=f.guid=f.guid||g.guid||a.guid++);var q=h.match(/^(\w+)\s*(.*)$/),r=q[1]+c.eventNamespace;(q=q[2])?k.delegate(q,r,g):d.bind(r,g)})},_off:function(a,d){d=(d||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.unbind(d).undelegate(d)},_delay:function(a,d){var b=this;return setTimeout(function(){return("string"===
  typeof a?b[a]:a).apply(b,arguments)},d||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b);this._on(b,{mouseenter:function(d){a(d.currentTarget).addClass("ui-state-hover")},mouseleave:function(d){a(d.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b);this._on(b,{focusin:function(d){a(d.currentTarget).addClass("ui-state-focus")},focusout:function(d){a(d.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(b,d,h){var k,
  c=this.options[b];h=h||{};d=a.Event(d);d.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();d.target=this.element[0];if(b=d.originalEvent)for(k in b)k in d||(d[k]=b[k]);this.element.trigger(d,h);return!(a.isFunction(c)&&!1===c.apply(this.element[0],[d].concat(h))||d.isDefaultPrevented())}};a.each({show:"fadeIn",hide:"fadeOut"},function(b,d){a.Widget.prototype["_"+b]=function(h,k,c){"string"===typeof k&&(k={effect:k});var f,g=k?!0===k||"number"===typeof k?d:k.effect||d:b;k=
  k||{};"number"===typeof k&&(k={duration:k});f=!a.isEmptyObject(k);k.complete=c;k.delay&&h.delay(k.delay);if(f&&a.effects&&a.effects.effect[g])h[b](k);else if(g!==b&&h[g])h[g](k.duration,k.easing,c);else h.queue(function(d){a(this)[b]();c&&c.call(h[0]);d()})}})})(jQuery);
  (function(a,g){var f=!1;a(document).mouseup(function(){f=!1});a.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(a){return c._mouseDown(a)}).bind("click."+this.widgetName,function(b){if(!0===a.data(b.target,c.widgetName+".preventClickEvent"))return a.removeData(b.target,c.widgetName+".preventClickEvent"),b.stopImmediatePropagation(),!1});this.started=
  !1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(c){if(!f){this._mouseStarted&&this._mouseUp(c);this._mouseDownEvent=c;var b=this,e=1===c.which,d="string"===typeof this.options.cancel&&c.target.nodeName?a(c.target).closest(this.options.cancel).length:!1;if(!e||d||!this._mouseCapture(c))return!0;this.mouseDelayMet=
  !this.options.delay;this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=!0},this.options.delay));if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=!1!==this._mouseStart(c),!this._mouseStarted))return c.preventDefault(),!0;!0===a.data(c.target,this.widgetName+".preventClickEvent")&&a.removeData(c.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return b._mouseMove(a)};this._mouseUpDelegate=function(a){return b._mouseUp(a)};
  a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.preventDefault();return f=!0}},_mouseMove:function(c){if(a.ui.ie&&(!document.documentMode||9>document.documentMode)&&!c.button)return this._mouseUp(c);if(this._mouseStarted)return this._mouseDrag(c),c.preventDefault();this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&((this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,c))?this._mouseDrag(c):this._mouseUp(c));
  return!this._mouseStarted},_mouseUp:function(c){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,c.target===this._mouseDownEvent.target&&a.data(c.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(c));return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},
  _mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);
  (function(a,g){a.widget("ui.draggable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||
  /^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative");this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(f){var c=this.options;if(this.helper||c.disabled||0<a(f.target).closest(".ui-resizable-handle").length)return!1;
  this.handle=this._getHandle(f);if(!this.handle)return!1;a(!0===c.iframeFix?"iframe":c.iframeFix).each(function(){a("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")});return!0},_mouseStart:function(f){var c=this.options;this.helper=this._createHelper(f);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();
  a.ui.ddmanager&&(a.ui.ddmanager.current=this);this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offsetParent=this.helper.offsetParent();this.offsetParentCssPosition=this.offsetParent.css("position");this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.scroll=!1;a.extend(this.offset,{click:{left:f.pageX-this.offset.left,top:f.pageY-this.offset.top},
  parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(f);this.originalPageX=f.pageX;this.originalPageY=f.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);this._setContainment();if(!1===this._trigger("start",f))return this._clear(),!1;this._cacheHelperProportions();a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,f);this._mouseDrag(f,!0);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,f);return!0},
  _mouseDrag:function(f,c){"fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset());this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo("absolute");if(!c){var b=this._uiHash();if(!1===this._trigger("drag",f,b))return this._mouseUp({}),!1;this.position=b.position}this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px");this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+
  "px");a.ui.ddmanager&&a.ui.ddmanager.drag(this,f);return!1},_mouseStop:function(f){var c=this,b=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(b=a.ui.ddmanager.drop(this,f));this.dropped&&(b=this.dropped,this.dropped=!1);if("original"===this.options.helper&&!a.contains(this.element[0].ownerDocument,this.element[0]))return!1;"invalid"===this.options.revert&&!b||"valid"===this.options.revert&&b||!0===this.options.revert||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)?
  a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==c._trigger("stop",f)&&c._clear()}):!1!==this._trigger("stop",f)&&this._clear();return!1},_mouseUp:function(f){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,f);return a.ui.mouse.prototype._mouseUp.call(this,f)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(f){return this.options.handle?
  !!a(f.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(f){var c=this.options;f=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[f])):"clone"===c.helper?this.element.clone().removeAttr("id"):this.element;f.parents("body").length||f.appendTo("parent"===c.appendTo?this.element[0].parentNode:c.appendTo);f[0]===this.element[0]||/(fixed|absolute)/.test(f.css("position"))||f.css("position","absolute");return f},_adjustOffsetFromHelper:function(f){"string"===
  typeof f&&(f=f.split(" "));a.isArray(f)&&(f={left:+f[0],top:+f[1]||0});"left"in f&&(this.offset.click.left=f.left+this.margins.left);"right"in f&&(this.offset.click.left=this.helperProportions.width-f.right+this.margins.left);"top"in f&&(this.offset.click.top=f.top+this.margins.top);"bottom"in f&&(this.offset.click.top=this.helperProportions.height-f.bottom+this.margins.top)},_getParentOffset:function(){var f=this.offsetParent.offset();"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&
  a.contains(this.scrollParent[0],this.offsetParent[0])&&(f.left+=this.scrollParent.scrollLeft(),f.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)f={top:0,left:0};return{top:f.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:f.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.element.position();
  return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left: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 f,c,b;f=this.options;if(f.containment)if("window"===f.containment)this.containment=[a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,a(window).scrollLeft()+a(window).width()-this.helperProportions.width-this.margins.left,a(window).scrollTop()+(a(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-
  this.margins.top];else if("document"===f.containment)this.containment=[0,0,a(document).width()-this.helperProportions.width-this.margins.left,(a(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];else if(f.containment.constructor===Array)this.containment=f.containment;else{if("parent"===f.containment&&(f.containment=this.helper[0].parentNode),c=a(f.containment),b=c[0])f="hidden"!==c.css("overflow"),this.containment=[(parseInt(c.css("borderLeftWidth"),
  10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(f?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-
  this.margins.top-this.margins.bottom],this.relative_container=c}else this.containment=null},_convertPositionTo:function(f,c){c||(c=this.position);var b="absolute"===f?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;this.offset.scroll||(this.offset.scroll={top:e.scrollTop(),left:e.scrollLeft()});return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-("fixed"===this.cssPosition?
  -this.scrollParent.scrollTop():this.offset.scroll.top)*b,left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*b}},_generatePosition:function(f){var c,b,e,d=this.options,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;e=f.pageX;b=f.pageY;this.offset.scroll||(this.offset.scroll={top:h.scrollTop(),
  left:h.scrollLeft()});this.originalPosition&&(this.containment&&(this.relative_container?(c=this.relative_container.offset(),c=[this.containment[0]+c.left,this.containment[1]+c.top,this.containment[2]+c.left,this.containment[3]+c.top]):c=this.containment,f.pageX-this.offset.click.left<c[0]&&(e=c[0]+this.offset.click.left),f.pageY-this.offset.click.top<c[1]&&(b=c[1]+this.offset.click.top),f.pageX-this.offset.click.left>c[2]&&(e=c[2]+this.offset.click.left),f.pageY-this.offset.click.top>c[3]&&(b=c[3]+
  this.offset.click.top)),d.grid&&(b=d.grid[1]?this.originalPageY+Math.round((b-this.originalPageY)/d.grid[1])*d.grid[1]:this.originalPageY,b=c?b-this.offset.click.top>=c[1]||b-this.offset.click.top>c[3]?b:b-this.offset.click.top>=c[1]?b-d.grid[1]:b+d.grid[1]:b,e=d.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/d.grid[0])*d.grid[0]:this.originalPageX,e=c?e-this.offset.click.left>=c[0]||e-this.offset.click.left>c[2]?e:e-this.offset.click.left>=c[0]?e-d.grid[0]:e+d.grid[0]:e));return{top:b-
  this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove();this.helper=null;this.cancelHelperRemoval=
  !1},_trigger:function(f,c,b){b=b||this._uiHash();a.ui.plugin.call(this,f,[c,b]);"drag"===f&&(this.positionAbs=this._convertPositionTo("absolute"));return a.Widget.prototype._trigger.call(this,f,c,b)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.ui.plugin.add("draggable","connectToSortable",{start:function(f,c){var b=a(this).data("ui-draggable"),e=b.options,d=a.extend({},c,{item:b.element});b.sortables=
  [];a(e.connectToSortable).each(function(){var h=a.data(this,"ui-sortable");h&&!h.options.disabled&&(b.sortables.push({instance:h,shouldRevert:h.options.revert}),h.refreshPositions(),h._trigger("activate",f,d))})},stop:function(f,c){var b=a(this).data("ui-draggable"),e=a.extend({},c,{item:b.element});a.each(b.sortables,function(){this.instance.isOver?(this.instance.isOver=0,b.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),
  this.instance._mouseStop(f),this.instance.options.helper=this.instance.options._helper,"original"===b.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",f,e))})},drag:function(f,c){var b=a(this).data("ui-draggable"),e=this;a.each(b.sortables,function(){var d=!1,h=this;this.instance.positionAbs=b.positionAbs;this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;this.instance._intersectsWith(this.instance.containerCache)&&
  (d=!0,a.each(b.sortables,function(){this.instance.positionAbs=b.positionAbs;this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;this!==h&&this.instance._intersectsWith(this.instance.containerCache)&&a.contains(h.instance.element[0],this.instance.element[0])&&(d=!1);return d}));d?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(e).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=
  this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},f.target=this.instance.currentItem[0],this.instance._mouseCapture(f,!0),this.instance._mouseStart(f,!0,!0),this.instance.offset.click.top=b.offset.click.top,this.instance.offset.click.left=b.offset.click.left,this.instance.offset.parent.left-=b.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=b.offset.parent.top-this.instance.offset.parent.top,b._trigger("toSortable",f),b.dropped=
  this.instance.element,b.currentItem=b.element,this.instance.fromOutside=b),this.instance.currentItem&&this.instance._mouseDrag(f)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",f,this.instance._uiHash(this.instance)),this.instance._mouseStop(f,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),
  b._trigger("fromSortable",f),b.dropped=!1)})}});a.ui.plugin.add("draggable","cursor",{start:function(){var f=a("body"),c=a(this).data("ui-draggable").options;f.css("cursor")&&(c._cursor=f.css("cursor"));f.css("cursor",c.cursor)},stop:function(){var f=a(this).data("ui-draggable").options;f._cursor&&a("body").css("cursor",f._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(f,c){var b=a(c.helper),e=a(this).data("ui-draggable").options;b.css("opacity")&&(e._opacity=b.css("opacity"));b.css("opacity",
  e.opacity)},stop:function(f,c){var b=a(this).data("ui-draggable").options;b._opacity&&a(c.helper).css("opacity",b._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var f=a(this).data("ui-draggable");f.scrollParent[0]!==document&&"HTML"!==f.scrollParent[0].tagName&&(f.overflowOffset=f.scrollParent.offset())},drag:function(f){var c=a(this).data("ui-draggable"),b=c.options,e=!1;c.scrollParent[0]!==document&&"HTML"!==c.scrollParent[0].tagName?(b.axis&&"x"===b.axis||(c.overflowOffset.top+
  c.scrollParent[0].offsetHeight-f.pageY<b.scrollSensitivity?c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop+b.scrollSpeed:f.pageY-c.overflowOffset.top<b.scrollSensitivity&&(c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop-b.scrollSpeed)),b.axis&&"y"===b.axis||(c.overflowOffset.left+c.scrollParent[0].offsetWidth-f.pageX<b.scrollSensitivity?c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft+b.scrollSpeed:f.pageX-c.overflowOffset.left<b.scrollSensitivity&&(c.scrollParent[0].scrollLeft=
  e=c.scrollParent[0].scrollLeft-b.scrollSpeed))):(b.axis&&"x"===b.axis||(f.pageY-a(document).scrollTop()<b.scrollSensitivity?e=a(document).scrollTop(a(document).scrollTop()-b.scrollSpeed):a(window).height()-(f.pageY-a(document).scrollTop())<b.scrollSensitivity&&(e=a(document).scrollTop(a(document).scrollTop()+b.scrollSpeed))),b.axis&&"y"===b.axis||(f.pageX-a(document).scrollLeft()<b.scrollSensitivity?e=a(document).scrollLeft(a(document).scrollLeft()-b.scrollSpeed):a(window).width()-(f.pageX-a(document).scrollLeft())<
  b.scrollSensitivity&&(e=a(document).scrollLeft(a(document).scrollLeft()+b.scrollSpeed))));!1!==e&&a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,f)}});a.ui.plugin.add("draggable","snap",{start:function(){var f=a(this).data("ui-draggable"),c=f.options;f.snapElements=[];a(c.snap.constructor!==String?c.snap.items||":data(ui-draggable)":c.snap).each(function(){var b=a(this),e=b.offset();this!==f.element[0]&&f.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),
  top:e.top,left:e.left})})},drag:function(f,c){var b,e,d,h,k,m,l,g,n,q,r=a(this).data("ui-draggable"),x=r.options,u=x.snapTolerance,t=c.offset.left,C=t+r.helperProportions.width,v=c.offset.top,A=v+r.helperProportions.height;for(n=r.snapElements.length-1;0<=n;n--)k=r.snapElements[n].left,m=k+r.snapElements[n].width,l=r.snapElements[n].top,g=l+r.snapElements[n].height,C<k-u||t>m+u||A<l-u||v>g+u||!a.contains(r.snapElements[n].item.ownerDocument,r.snapElements[n].item)?(r.snapElements[n].snapping&&r.options.snap.release&&
  r.options.snap.release.call(r.element,f,a.extend(r._uiHash(),{snapItem:r.snapElements[n].item})),r.snapElements[n].snapping=!1):("inner"!==x.snapMode&&(b=Math.abs(l-A)<=u,e=Math.abs(g-v)<=u,d=Math.abs(k-C)<=u,h=Math.abs(m-t)<=u,b&&(c.position.top=r._convertPositionTo("relative",{top:l-r.helperProportions.height,left:0}).top-r.margins.top),e&&(c.position.top=r._convertPositionTo("relative",{top:g,left:0}).top-r.margins.top),d&&(c.position.left=r._convertPositionTo("relative",{top:0,left:k-r.helperProportions.width}).left-
  r.margins.left),h&&(c.position.left=r._convertPositionTo("relative",{top:0,left:m}).left-r.margins.left)),q=b||e||d||h,"outer"!==x.snapMode&&(b=Math.abs(l-v)<=u,e=Math.abs(g-A)<=u,d=Math.abs(k-t)<=u,h=Math.abs(m-C)<=u,b&&(c.position.top=r._convertPositionTo("relative",{top:l,left:0}).top-r.margins.top),e&&(c.position.top=r._convertPositionTo("relative",{top:g-r.helperProportions.height,left:0}).top-r.margins.top),d&&(c.position.left=r._convertPositionTo("relative",{top:0,left:k}).left-r.margins.left),
  h&&(c.position.left=r._convertPositionTo("relative",{top:0,left:m-r.helperProportions.width}).left-r.margins.left)),!r.snapElements[n].snapping&&(b||e||d||h||q)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,f,a.extend(r._uiHash(),{snapItem:r.snapElements[n].item})),r.snapElements[n].snapping=b||e||d||h||q)}});a.ui.plugin.add("draggable","stack",{start:function(){var f,c=this.data("ui-draggable").options,c=a.makeArray(a(c.stack)).sort(function(b,e){return(parseInt(a(b).css("zIndex"),10)||
  0)-(parseInt(a(e).css("zIndex"),10)||0)});c.length&&(f=parseInt(a(c[0]).css("zIndex"),10)||0,a(c).each(function(b){a(this).css("zIndex",f+b)}),this.css("zIndex",f+c.length))}});a.ui.plugin.add("draggable","zIndex",{start:function(f,c){var b=a(c.helper),e=a(this).data("ui-draggable").options;b.css("zIndex")&&(e._zIndex=b.css("zIndex"));b.css("zIndex",e.zIndex)},stop:function(f,c){var b=a(this).data("ui-draggable").options;b._zIndex&&a(c.helper).css("zIndex",b._zIndex)}})})(jQuery);
  (function(a,g){a.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var f=this.options,c=f.accept;this.isover=!1;this.isout=!0;this.accept=a.isFunction(c)?c:function(a){return a.is(c)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[f.scope]=
  a.ui.ddmanager.droppables[f.scope]||[];a.ui.ddmanager.droppables[f.scope].push(this);f.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var f=0,c=a.ui.ddmanager.droppables[this.options.scope];f<c.length;f++)c[f]===this&&c.splice(f,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(f,c){"accept"===f&&(this.accept=a.isFunction(c)?c:function(a){return a.is(c)});a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(f){var c=
  a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);c&&this._trigger("activate",f,this.ui(c))},_deactivate:function(f){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);c&&this._trigger("deactivate",f,this.ui(c))},_over:function(f){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),
  this._trigger("over",f,this.ui(c)))},_out:function(f){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",f,this.ui(c)))},_drop:function(f,c){var b=c||a.ui.ddmanager.current,e=!1;if(!b||(b.currentItem||b.element)[0]===this.element[0])return!1;this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var d=
  a.data(this,"ui-droppable");if(d.options.greedy&&!d.options.disabled&&d.options.scope===b.options.scope&&d.accept.call(d.element[0],b.currentItem||b.element)&&a.ui.intersect(b,a.extend(d,{offset:d.element.offset()}),d.options.tolerance))return e=!0,!1});return e?!1:this.accept.call(this.element[0],b.currentItem||b.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",f,
  this.ui(b)),this.element):!1},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});a.ui.intersect=function(a,c,b){if(!c.offset)return!1;var e=(a.positionAbs||a.position.absolute).left,d=e+a.helperProportions.width,h=(a.positionAbs||a.position.absolute).top,k=h+a.helperProportions.height,m=c.offset.left,l=m+c.proportions.width,g=c.offset.top,n=g+c.proportions.height;switch(b){case "fit":return m<=e&&d<=l&&g<=h&&k<=n;case "intersect":return m<
  e+a.helperProportions.width/2&&d-a.helperProportions.width/2<l&&g<h+a.helperProportions.height/2&&k-a.helperProportions.height/2<n;case "pointer":return b=(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,a=(a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,a>g&&a<g+c.proportions.height&&b>m&&b<m+c.proportions.width;case "touch":return(h>=g&&h<=n||k>=g&&k<=n||h<g&&k>n)&&(e>=m&&e<=l||d>=m&&d<=l||e<m&&d>l);default:return!1}};a.ui.ddmanager={current:null,
  droppables:{"default":[]},prepareOffsets:function(f,c){var b,e,d=a.ui.ddmanager.droppables[f.options.scope]||[],h=c?c.type:null,k=(f.currentItem||f.element).find(":data(ui-droppable)").addBack();b=0;a:for(;b<d.length;b++)if(!(d[b].options.disabled||f&&!d[b].accept.call(d[b].element[0],f.currentItem||f.element))){for(e=0;e<k.length;e++)if(k[e]===d[b].element[0]){d[b].proportions.height=0;continue a}d[b].visible="none"!==d[b].element.css("display");d[b].visible&&("mousedown"===h&&d[b]._activate.call(d[b],
  c),d[b].offset=d[b].element.offset(),d[b].proportions={width:d[b].element[0].offsetWidth,height:d[b].element[0].offsetHeight})}},drop:function(f,c){var b=!1;a.each((a.ui.ddmanager.droppables[f.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(f,this,this.options.tolerance)&&(b=this._drop.call(this,c)||b),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],f.currentItem||f.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,
  c)))});return b},dragStart:function(f,c){f.element.parentsUntil("body").bind("scroll.droppable",function(){f.options.refreshPositions||a.ui.ddmanager.prepareOffsets(f,c)})},drag:function(f,c){f.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(f,c);a.each(a.ui.ddmanager.droppables[f.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var b,e,d;d=a.ui.intersect(f,this,this.options.tolerance);var h=!d&&this.isover?"isout":d&&!this.isover?"isover":null;h&&
  (this.options.greedy&&(e=this.options.scope,d=this.element.parents(":data(ui-droppable)").filter(function(){return a.data(this,"ui-droppable").options.scope===e}),d.length&&(b=a.data(d[0],"ui-droppable"),b.greedyChild="isover"===h)),b&&"isover"===h&&(b.isover=!1,b.isout=!0,b._out.call(b,c)),this[h]=!0,this["isout"===h?"isover":"isout"]=!1,this["isover"===h?"_over":"_out"].call(this,c),b&&"isout"===h&&(b.isout=!1,b.isover=!0,b._over.call(b,c)))}})},dragStop:function(f,c){f.element.parentsUntil("body").unbind("scroll.droppable");
  f.options.refreshPositions||a.ui.ddmanager.prepareOffsets(f,c)}}})(jQuery);
  (function(a,g){function f(a){return parseInt(a,10)||0}function c(a){return!isNaN(parseInt(a,10))}a.widget("ui.resizable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var b,e,d,h,k,c=this,f=this.options;this.element.addClass("ui-resizable");
  a.extend(this,{_aspectRatio:!!f.aspectRatio,aspectRatio:f.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:f.helper||f.ghost||f.animate?f.helper||"ui-resizable-helper":null});this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(a("<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.data("ui-resizable")),this.elementIsWrapper=!0,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=f.handles||(a(".ui-resizable-handle",this.element).length?{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"}:"e,s,se");
  if(this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),b=this.handles.split(","),this.handles={},e=0;e<b.length;e++)d=a.trim(b[e]),k="ui-resizable-"+d,h=a("<div class='ui-resizable-handle "+k+"'></div>"),h.css({zIndex:f.zIndex}),"se"===d&&h.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[d]=".ui-resizable-"+d,this.element.append(h);this._renderAxis=function(d){var b,h,e;d=d||this.element;for(b in this.handles)this.handles[b].constructor===
  String&&(this.handles[b]=a(this.handles[b],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(h=a(this.handles[b],this.element),e=/sw|ne|nw|se|n|s/.test(b)?h.outerHeight():h.outerWidth(),h=["padding",/ne|nw|n/.test(b)?"Top":/se|sw|s/.test(b)?"Bottom":/^e$/.test(b)?"Right":"Left"].join(""),d.css(h,e),this._proportionallyResize()),a(this.handles[b])};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();
  this._handles.mouseover(function(){c.resizing||(this.className&&(h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),c.axis=h&&h[1]?h[1]:"se")});f.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").mouseenter(function(){f.disabled||(a(this).removeClass("ui-resizable-autohide"),c._handles.show())}).mouseleave(function(){f.disabled||c.resizing||(a(this).addClass("ui-resizable-autohide"),c._handles.hide())}));this._mouseInit()},_destroy:function(){this._mouseDestroy();
  var b,e=function(d){a(d).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};this.elementIsWrapper&&(e(this.element),b=this.element,this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")}).insertAfter(b),b.remove());this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);
  return this},_mouseCapture:function(b){var e,d,h=!1;for(e in this.handles)if(d=a(this.handles[e])[0],d===b.target||a.contains(d,b.target))h=!0;return!this.options.disabled&&h},_mouseStart:function(b){var e,d,h;h=this.options;e=this.element.position();var c=this.element;this.resizing=!0;/absolute/.test(c.css("position"))?c.css({position:"absolute",top:c.css("top"),left:c.css("left")}):c.is(".ui-draggable")&&c.css({position:"absolute",top:e.top,left:e.left});this._renderProxy();e=f(this.helper.css("left"));
  d=f(this.helper.css("top"));h.containment&&(e+=a(h.containment).scrollLeft()||0,d+=a(h.containment).scrollTop()||0);this.offset=this.helper.offset();this.position={left:e,top:d};this.size=this._helper?{width:c.outerWidth(),height:c.outerHeight()}:{width:c.width(),height:c.height()};this.originalSize=this._helper?{width:c.outerWidth(),height:c.outerHeight()}:{width:c.width(),height:c.height()};this.originalPosition={left:e,top:d};this.sizeDiff={width:c.outerWidth()-c.width(),height:c.outerHeight()-
  c.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio="number"===typeof h.aspectRatio?h.aspectRatio:this.originalSize.width/this.originalSize.height||1;h=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor","auto"===h?this.axis+"-resize":h);c.addClass("ui-resizable-resizing");this._propagate("start",b);return!0},_mouseDrag:function(b){var e,d=this.helper,h={};e=this.originalMousePosition;var c=this.position.top,f=this.position.left,l=this.size.width,g=this.size.height,
  n=this._change[this.axis];if(!n)return!1;e=n.apply(this,[b,b.pageX-e.left||0,b.pageY-e.top||0]);this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)e=this._updateRatio(e,b);e=this._respectSize(e,b);this._updateCache(e);this._propagate("resize",b);this.position.top!==c&&(h.top=this.position.top+"px");this.position.left!==f&&(h.left=this.position.left+"px");this.size.width!==l&&(h.width=this.size.width+"px");this.size.height!==g&&(h.height=this.size.height+"px");d.css(h);!this._helper&&
  this._proportionallyResizeElements.length&&this._proportionallyResize();a.isEmptyObject(h)||this._trigger("resize",b,this.ui());return!1},_mouseStop:function(b){this.resizing=!1;var e,d,h,c=this.options;this._helper&&(e=this._proportionallyResizeElements,e=(d=e.length&&/textarea/i.test(e[0].nodeName))&&a.ui.hasScroll(e[0],"left")?0:this.sizeDiff.height,d=d?0:this.sizeDiff.width,d={width:this.helper.width()-d,height:this.helper.height()-e},e=parseInt(this.element.css("left"),10)+(this.position.left-
  this.originalPosition.left)||null,h=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null,c.animate||this.element.css(a.extend(d,{top:h,left:e})),this.helper.height(this.size.height),this.helper.width(this.size.width),this._helper&&!c.animate&&this._proportionallyResize());a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",b);this._helper&&this.helper.remove();return!1},_updateVirtualBoundaries:function(a){var e,
  d,h,k;k=this.options;k={minWidth:c(k.minWidth)?k.minWidth:0,maxWidth:c(k.maxWidth)?k.maxWidth:Infinity,minHeight:c(k.minHeight)?k.minHeight:0,maxHeight:c(k.maxHeight)?k.maxHeight:Infinity};if(this._aspectRatio||a)a=k.minHeight*this.aspectRatio,d=k.minWidth/this.aspectRatio,e=k.maxHeight*this.aspectRatio,h=k.maxWidth/this.aspectRatio,a>k.minWidth&&(k.minWidth=a),d>k.minHeight&&(k.minHeight=d),e<k.maxWidth&&(k.maxWidth=e),h<k.maxHeight&&(k.maxHeight=h);this._vBoundaries=k},_updateCache:function(a){this.offset=
  this.helper.offset();c(a.left)&&(this.position.left=a.left);c(a.top)&&(this.position.top=a.top);c(a.height)&&(this.size.height=a.height);c(a.width)&&(this.size.width=a.width)},_updateRatio:function(a){var e=this.position,d=this.size,h=this.axis;c(a.height)?a.width=a.height*this.aspectRatio:c(a.width)&&(a.height=a.width/this.aspectRatio);"sw"===h&&(a.left=e.left+(d.width-a.width),a.top=null);"nw"===h&&(a.top=e.top+(d.height-a.height),a.left=e.left+(d.width-a.width));return a},_respectSize:function(a){var e=
  this._vBoundaries,d=this.axis,h=c(a.width)&&e.maxWidth&&e.maxWidth<a.width,k=c(a.height)&&e.maxHeight&&e.maxHeight<a.height,f=c(a.width)&&e.minWidth&&e.minWidth>a.width,l=c(a.height)&&e.minHeight&&e.minHeight>a.height,g=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height,q=/sw|nw|w/.test(d),d=/nw|ne|n/.test(d);f&&(a.width=e.minWidth);l&&(a.height=e.minHeight);h&&(a.width=e.maxWidth);k&&(a.height=e.maxHeight);f&&q&&(a.left=g-e.minWidth);h&&q&&(a.left=g-e.maxWidth);
  l&&d&&(a.top=n-e.minHeight);k&&d&&(a.top=n-e.maxHeight);a.width||a.height||a.left||!a.top?a.width||a.height||a.top||!a.left||(a.left=null):a.top=null;return a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var a,e,d,h,c,f=this.helper||this.element;for(a=0;a<this._proportionallyResizeElements.length;a++){c=this._proportionallyResizeElements[a];if(!this.borderDif)for(this.borderDif=[],d=[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],
  h=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")],e=0;e<d.length;e++)this.borderDif[e]=(parseInt(d[e],10)||0)+(parseInt(h[e],10)||0);c.css({height:f.height()-this.borderDif[0]-this.borderDif[2]||0,width:f.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var b=this.options;this.elementOffset=this.element.offset();this._helper?(this.helper=this.helper||a("<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:++b.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(a,e){return{width:this.originalSize.width+e}},w:function(a,e){return{left:this.originalPosition.left+e,width:this.originalSize.width-e}},n:function(a,e,d){return{top:this.originalPosition.top+d,height:this.originalSize.height-d}},s:function(a,e,d){return{height:this.originalSize.height+
  d}},se:function(b,e,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,e,d]))},sw:function(b,e,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,e,d]))},ne:function(b,e,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,e,d]))},nw:function(b,e,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,e,d]))}},_propagate:function(b,e){a.ui.plugin.call(this,b,[e,this.ui()]);
  "resize"!==b&&this._trigger(b,e,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}}});a.ui.plugin.add("resizable","animate",{stop:function(b){var e=a(this).data("ui-resizable"),d=e.options,h=e._proportionallyResizeElements,c=h.length&&/textarea/i.test(h[0].nodeName),f=c&&a.ui.hasScroll(h[0],"left")?0:e.sizeDiff.height,c=
  {width:e.size.width-(c?0:e.sizeDiff.width),height:e.size.height-f},f=parseInt(e.element.css("left"),10)+(e.position.left-e.originalPosition.left)||null,l=parseInt(e.element.css("top"),10)+(e.position.top-e.originalPosition.top)||null;e.element.animate(a.extend(c,l&&f?{top:l,left:f}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var d={width:parseInt(e.element.css("width"),10),height:parseInt(e.element.css("height"),10),top:parseInt(e.element.css("top"),10),left:parseInt(e.element.css("left"),
  10)};h&&h.length&&a(h[0]).css({width:d.width,height:d.height});e._updateCache(d);e._propagate("resize",b)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var b,e,d,h,c,m=a(this).data("ui-resizable"),l=m.element;d=m.options.containment;if(l=d instanceof a?d.get(0):/parent/.test(d)?l.parent().get(0):d)m.containerElement=a(l),/document/.test(d)||d===document?(m.containerOffset={left:0,top:0},m.containerPosition={left:0,top:0},m.parentData={element:a(document),left:0,top:0,width:a(document).width(),
  height:a(document).height()||document.body.parentNode.scrollHeight}):(b=a(l),e=[],a(["Top","Right","Left","Bottom"]).each(function(a,d){e[a]=f(b.css("padding"+d))}),m.containerOffset=b.offset(),m.containerPosition=b.position(),m.containerSize={height:b.innerHeight()-e[3],width:b.innerWidth()-e[1]},d=m.containerOffset,h=m.containerSize.height,c=m.containerSize.width,c=a.ui.hasScroll(l,"left")?l.scrollWidth:c,h=a.ui.hasScroll(l)?l.scrollHeight:h,m.parentData={element:l,left:d.left,top:d.top,width:c,
  height:h})},resize:function(b){var e,d,h,c,f=a(this).data("ui-resizable");e=f.options;d=f.containerOffset;h=f.position;b=f._aspectRatio||b.shiftKey;c={top:0,left:0};var l=f.containerElement;l[0]!==document&&/static/.test(l.css("position"))&&(c=d);h.left<(f._helper?d.left:0)&&(f.size.width+=f._helper?f.position.left-d.left:f.position.left-c.left,b&&(f.size.height=f.size.width/f.aspectRatio),f.position.left=e.helper?d.left:0);h.top<(f._helper?d.top:0)&&(f.size.height+=f._helper?f.position.top-d.top:
  f.position.top,b&&(f.size.width=f.size.height*f.aspectRatio),f.position.top=f._helper?d.top:0);f.offset.left=f.parentData.left+f.position.left;f.offset.top=f.parentData.top+f.position.top;e=Math.abs(f.offset.left-c.left+f.sizeDiff.width);d=Math.abs((f._helper?f.offset.top-c.top:f.offset.top-d.top)+f.sizeDiff.height);h=f.containerElement.get(0)===f.element.parent().get(0);c=/relative|absolute/.test(f.containerElement.css("position"));h&&c&&(e-=f.parentData.left);e+f.size.width>=f.parentData.width&&
  (f.size.width=f.parentData.width-e,b&&(f.size.height=f.size.width/f.aspectRatio));d+f.size.height>=f.parentData.height&&(f.size.height=f.parentData.height-d,b&&(f.size.width=f.size.height*f.aspectRatio))},stop:function(){var b=a(this).data("ui-resizable"),e=b.options,d=b.containerOffset,h=b.containerPosition,c=b.containerElement,f=a(b.helper),l=f.offset(),g=f.outerWidth()-b.sizeDiff.width,f=f.outerHeight()-b.sizeDiff.height;b._helper&&!e.animate&&/relative/.test(c.css("position"))&&a(this).css({left:l.left-
  h.left-d.left,width:g,height:f});b._helper&&!e.animate&&/static/.test(c.css("position"))&&a(this).css({left:l.left-h.left-d.left,width:g,height:f})}});a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("ui-resizable").options,e=function(d){a(d).each(function(){var d=a(this);d.data("ui-resizable-alsoresize",{width:parseInt(d.width(),10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10)})})};"object"!==typeof b.alsoResize||b.alsoResize.parentNode?
  e(b.alsoResize):b.alsoResize.length?(b.alsoResize=b.alsoResize[0],e(b.alsoResize)):a.each(b.alsoResize,function(a){e(a)})},resize:function(b,e){var d=a(this).data("ui-resizable"),h=d.options,c=d.originalSize,f=d.originalPosition,l={height:d.size.height-c.height||0,width:d.size.width-c.width||0,top:d.position.top-f.top||0,left:d.position.left-f.left||0},g=function(d,b){a(d).each(function(){var d=a(this),h=a(this).data("ui-resizable-alsoresize"),c={},f=b&&b.length?b:d.parents(e.originalElement[0]).length?
  ["width","height"]:["width","height","top","left"];a.each(f,function(a,d){var b=(h[d]||0)+(l[d]||0);b&&0<=b&&(c[d]=b||null)});d.css(c)})};"object"!==typeof h.alsoResize||h.alsoResize.nodeType?g(h.alsoResize):a.each(h.alsoResize,function(a,d){g(a,d)})},stop:function(){a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("ui-resizable"),e=b.options,d=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:.25,display:"block",position:"relative",
  height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"===typeof e.ghost?e.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("ui-resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("ui-resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var b=a(this).data("ui-resizable"),
  e=b.options,d=b.size,h=b.originalSize,c=b.originalPosition,f=b.axis,l="number"===typeof e.grid?[e.grid,e.grid]:e.grid,g=l[0]||1,n=l[1]||1,q=Math.round((d.width-h.width)/g)*g,d=Math.round((d.height-h.height)/n)*n,r=h.width+q,h=h.height+d,x=e.maxWidth&&e.maxWidth<r,u=e.maxHeight&&e.maxHeight<h,t=e.minWidth&&e.minWidth>r,C=e.minHeight&&e.minHeight>h;e.grid=l;t&&(r+=g);C&&(h+=n);x&&(r-=g);u&&(h-=n);/^(se|s|e)$/.test(f)?(b.size.width=r,b.size.height=h):/^(ne)$/.test(f)?(b.size.width=r,b.size.height=h,
  b.position.top=c.top-d):(/^(sw)$/.test(f)?(b.size.width=r,b.size.height=h):(b.size.width=r,b.size.height=h,b.position.top=c.top-d),b.position.left=c.left-q)}})})(jQuery);
  (function(a,g){a.widget("ui.selectable",a.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var f,c=this;this.element.addClass("ui-selectable");this.dragged=!1;this.refresh=function(){f=a(c.options.filter,c.element[0]);f.addClass("ui-selectee");f.each(function(){var b=a(this),e=b.offset();a.data(this,"selectable-item",{element:this,$element:b,
  left:e.left,top:e.top,right:e.left+b.outerWidth(),bottom:e.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled");
  this._mouseDestroy()},_mouseStart:function(f){var c=this,b=this.options;this.opos=[f.pageX,f.pageY];this.options.disabled||(this.selectees=a(b.filter,this.element[0]),this._trigger("start",f),a(b.appendTo).append(this.helper),this.helper.css({left:f.pageX,top:f.pageY,width:0,height:0}),b.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var b=a.data(this,"selectable-item");b.startselected=!0;f.metaKey||f.ctrlKey||(b.$element.removeClass("ui-selected"),b.selected=!1,
  b.$element.addClass("ui-unselecting"),b.unselecting=!0,c._trigger("unselecting",f,{unselecting:b.element}))}),a(f.target).parents().addBack().each(function(){var b,d=a.data(this,"selectable-item");if(d)return b=!f.metaKey&&!f.ctrlKey||!d.$element.hasClass("ui-selected"),d.$element.removeClass(b?"ui-unselecting":"ui-selected").addClass(b?"ui-selecting":"ui-unselecting"),d.unselecting=!b,d.selecting=b,(d.selected=b)?c._trigger("selecting",f,{selecting:d.element}):c._trigger("unselecting",f,{unselecting:d.element}),
  !1}))},_mouseDrag:function(f){this.dragged=!0;if(!this.options.disabled){var c,b=this,e=this.options,d=this.opos[0],h=this.opos[1],k=f.pageX,m=f.pageY;d>k&&(c=k,k=d,d=c);h>m&&(c=m,m=h,h=c);this.helper.css({left:d,top:h,width:k-d,height:m-h});this.selectees.each(function(){var c=a.data(this,"selectable-item"),g=!1;c&&c.element!==b.element[0]&&("touch"===e.tolerance?g=!(c.left>k||c.right<d||c.top>m||c.bottom<h):"fit"===e.tolerance&&(g=c.left>d&&c.right<k&&c.top>h&&c.bottom<m),g?(c.selected&&(c.$element.removeClass("ui-selected"),
  c.selected=!1),c.unselecting&&(c.$element.removeClass("ui-unselecting"),c.unselecting=!1),c.selecting||(c.$element.addClass("ui-selecting"),c.selecting=!0,b._trigger("selecting",f,{selecting:c.element}))):(c.selecting&&((f.metaKey||f.ctrlKey)&&c.startselected?(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.$element.addClass("ui-selected"),c.selected=!0):(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.startselected&&(c.$element.addClass("ui-unselecting"),c.unselecting=!0),b._trigger("unselecting",
  f,{unselecting:c.element}))),!c.selected||f.metaKey||f.ctrlKey||c.startselected||(c.$element.removeClass("ui-selected"),c.selected=!1,c.$element.addClass("ui-unselecting"),c.unselecting=!0,b._trigger("unselecting",f,{unselecting:c.element}))))});return!1}},_mouseStop:function(f){var c=this;this.dragged=!1;a(".ui-unselecting",this.element[0]).each(function(){var b=a.data(this,"selectable-item");b.$element.removeClass("ui-unselecting");b.unselecting=!1;b.startselected=!1;c._trigger("unselected",f,{unselected:b.element})});
  a(".ui-selecting",this.element[0]).each(function(){var b=a.data(this,"selectable-item");b.$element.removeClass("ui-selecting").addClass("ui-selected");b.selecting=!1;b.selected=!0;b.startselected=!0;c._trigger("selected",f,{selected:b.element})});this._trigger("stop",f);this.helper.remove();return!1}})})(jQuery);
  (function(a,g){function f(a,e,d){return a>e&&a<e+d}function c(a){return/left|right/.test(a.css("float"))||/inline|table-cell/.test(a.css("display"))}a.widget("ui.sortable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,
  scope:"default",tolerance:"intersect",zIndex:1E3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?"x"===a.axis||c(this.items[0].item):!1;this.offset=this.element.offset();this._mouseInit();this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled");
  this._mouseDestroy();for(var a=this.items.length-1;0<=a;a--)this.items[a].item.removeData(this.widgetName+"-item");return this},_setOption:function(b,e){"disabled"===b?(this.options[b]=e,this.widget().toggleClass("ui-sortable-disabled",!!e)):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,e){var d=null,h=!1,c=this;if(this.reverting||this.options.disabled||"static"===this.options.type)return!1;this._refreshItems(b);a(b.target).parents().each(function(){if(a.data(this,
  c.widgetName+"-item")===c)return d=a(this),!1});a.data(b.target,c.widgetName+"-item")===c&&(d=a(b.target));if(!d||this.options.handle&&!e&&(a(this.options.handle,d).find("*").addBack().each(function(){this===b.target&&(h=!0)}),!h))return!1;this.currentItem=d;this._removeCurrentsFromItems();return!0},_mouseStart:function(b,e,d){var h;e=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(b);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=
  this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;e.cursorAt&&
  this._adjustOffsetFromHelper(e.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!==this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();e.containment&&this._setContainment();e.cursor&&"auto"!==e.cursor&&(h=this.document.find("body"),this.storedCursor=h.css("cursor"),h.css("cursor",e.cursor),this.storedStylesheet=a("<style>*{ cursor: "+e.cursor+" !important; }</style>").appendTo(h));e.opacity&&(this.helper.css("opacity")&&
  (this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",e.opacity));e.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",e.zIndex));this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset());this._trigger("start",b,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!d)for(d=this.containers.length-1;0<=d;d--)this.containers[d]._trigger("activate",
  b,this._uiHash(this));a.ui.ddmanager&&(a.ui.ddmanager.current=this);a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.dragging=!0;this.helper.addClass("ui-sortable-helper");this._mouseDrag(b);return!0},_mouseDrag:function(b){var e,d,h,c;e=this.options;d=!1;this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs);this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==
  this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+e.scrollSpeed:b.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+e.scrollSpeed:b.pageX-
  this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(b.pageY-a(document).scrollTop()<e.scrollSensitivity?d=a(document).scrollTop(a(document).scrollTop()-e.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<e.scrollSensitivity&&(d=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed)),b.pageX-a(document).scrollLeft()<e.scrollSensitivity?d=a(document).scrollLeft(a(document).scrollLeft()-e.scrollSpeed):
  a(window).width()-(b.pageX-a(document).scrollLeft())<e.scrollSensitivity&&(d=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed))),!1!==d&&a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b));this.positionAbs=this._convertPositionTo("absolute");this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px");this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px");for(e=this.items.length-1;0<=e;e--)if(d=
  this.items[e],h=d.item[0],(c=this._intersectsWithPointer(d))&&d.instance===this.currentContainer&&h!==this.currentItem[0]&&this.placeholder[1===c?"next":"prev"]()[0]!==h&&!a.contains(this.placeholder[0],h)&&("semi-dynamic"===this.options.type?!a.contains(this.element[0],h):1)){this.direction=1===c?"down":"up";if("pointer"===this.options.tolerance||this._intersectsWithSides(d))this._rearrange(b,d);else break;this._trigger("change",b,this._uiHash());break}this._contactContainers(b);a.ui.ddmanager&&
  a.ui.ddmanager.drag(this,b);this._trigger("sort",b,this._uiHash());this.lastPositionAbs=this.positionAbs;return!1},_mouseStop:function(b,e){if(b){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b);if(this.options.revert){var d=this,h=this.placeholder.offset(),c=this.options.axis,f={};c&&"x"!==c||(f.left=h.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft));c&&"y"!==c||(f.top=h.top-this.offset.parent.top-this.margins.top+
  (this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop));this.reverting=!0;a(this.helper).animate(f,parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,e);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null});"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;0<=b;b--)this.containers[b]._trigger("deactivate",null,this._uiHash(this)),
  this.containers[b].containerCache.over&&(this.containers[b]._trigger("out",null,this._uiHash(this)),this.containers[b].containerCache.over=0)}this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem));
  return this},serialize:function(b){var e=this._getItemsAsjQuery(b&&b.connected),d=[];b=b||{};a(e).each(function(){var h=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[\-=_](.+)/);h&&d.push((b.key||h[1]+"[]")+"="+(b.key&&b.expression?h[1]:h[2]))});!d.length&&b.key&&d.push(b.key+"=");return d.join("&")},toArray:function(b){var e=this._getItemsAsjQuery(b&&b.connected),d=[];b=b||{};e.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")});return d},_intersectsWith:function(a){var e=
  this.positionAbs.left,d=e+this.helperProportions.width,h=this.positionAbs.top,c=h+this.helperProportions.height,f=a.left,l=f+a.width,g=a.top,n=g+a.height,q=this.offset.click.top,r=this.offset.click.left,q="x"===this.options.axis||h+q>g&&h+q<n,r="y"===this.options.axis||e+r>f&&e+r<l;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?q&&r:f<e+this.helperProportions.width/
  2&&d-this.helperProportions.width/2<l&&g<h+this.helperProportions.height/2&&c-this.helperProportions.height/2<n},_intersectsWithPointer:function(a){var e="x"===this.options.axis||f(this.positionAbs.top+this.offset.click.top,a.top,a.height);a="y"===this.options.axis||f(this.positionAbs.left+this.offset.click.left,a.left,a.width);e=e&&a;a=this._getDragVerticalDirection();var d=this._getDragHorizontalDirection();return e?this.floating?d&&"right"===d||"down"===a?2:1:a&&("down"===a?2:1):!1},_intersectsWithSides:function(a){var e=
  f(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=f(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var d=this._getDragVerticalDirection(),h=this._getDragHorizontalDirection();return this.floating&&h?"right"===h&&a||"left"===h&&!a:d&&("down"===d&&e||"up"===d&&!e)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return 0!==a&&(0<a?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-
  this.lastPositionAbs.left;return 0!==a&&(0<a?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor===String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var e,d,h,c=[],f=[],l=this._connectWith();if(l&&b)for(b=l.length-1;0<=b;b--)for(d=a(l[b]),e=d.length-1;0<=e;e--)(h=a.data(d[e],this.widgetFullName))&&h!==this&&!h.options.disabled&&f.push([a.isFunction(h.options.items)?
  h.options.items.call(h.element):a(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h]);f.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(b=f.length-1;0<=b;b--)f[b][0].each(function(){c.push(this)});return a(c)},_removeCurrentsFromItems:function(){var b=this.currentItem.find(":data("+
  this.widgetName+"-item)");this.items=a.grep(this.items,function(a){for(var d=0;d<b.length;d++)if(b[d]===a.item[0])return!1;return!0})},_refreshItems:function(b){this.items=[];this.containers=[this];var e,d,h,c,f,l=this.items,g=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]];if((f=this._connectWith())&&this.ready)for(e=f.length-1;0<=e;e--)for(h=a(f[e]),d=h.length-1;0<=d;d--)(c=a.data(h[d],this.widgetFullName))&&
  c!==this&&!c.options.disabled&&(g.push([a.isFunction(c.options.items)?c.options.items.call(c.element[0],b,{item:this.currentItem}):a(c.options.items,c.element),c]),this.containers.push(c));for(e=g.length-1;0<=e;e--)for(b=g[e][1],h=g[e][0],d=0,f=h.length;d<f;d++)c=a(h[d]),c.data(this.widgetName+"-item",b),l.push({item:c,instance:b,width:0,height:0,left:0,top:0})},refreshPositions:function(b){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var e,d,h;for(e=this.items.length-
  1;0<=e;e--)d=this.items[e],d.instance!==this.currentContainer&&this.currentContainer&&d.item[0]!==this.currentItem[0]||(h=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item,b||(d.width=h.outerWidth(),d.height=h.outerHeight()),h=h.offset(),d.left=h.left,d.top=h.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)h=this.containers[e].element.offset(),this.containers[e].containerCache.left=
  h.left,this.containers[e].containerCache.top=h.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(b){b=b||this;var e,d=b.options;d.placeholder&&d.placeholder.constructor!==String||(e=d.placeholder,d.placeholder={element:function(){var d=b.currentItem[0].nodeName.toLowerCase(),c=a("<"+d+">",b.document[0]).addClass(e||b.currentItem[0].className+
  " ui-sortable-placeholder").removeClass("ui-sortable-helper");"tr"===d?b.currentItem.children().each(function(){a("<td>&#160;</td>",b.document[0]).attr("colspan",a(this).attr("colspan")||1).appendTo(c)}):"img"===d&&c.attr("src",b.currentItem.attr("src"));e||c.css("visibility","hidden");return c},update:function(a,c){if(!e||d.forcePlaceholderSize)c.height()||c.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10)),c.width()||
  c.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}});b.placeholder=a(d.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);d.placeholder.update(b,b.placeholder)},_contactContainers:function(b){var e,d,h,k,m,l,g,n,q,r=d=null;for(e=this.containers.length-1;0<=e;e--)a.contains(this.currentItem[0],this.containers[e].element[0])||(this._intersectsWith(this.containers[e].containerCache)?
  d&&a.contains(this.containers[e].element[0],d.element[0])||(d=this.containers[e],r=e):this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",b,this._uiHash(this)),this.containers[e].containerCache.over=0));if(d)if(1===this.containers.length)this.containers[r].containerCache.over||(this.containers[r]._trigger("over",b,this._uiHash(this)),this.containers[r].containerCache.over=1);else{e=1E4;h=null;k=(q=d.floating||c(this.currentItem))?"left":"top";m=q?"width":"height";l=this.positionAbs[k]+
  this.offset.click[k];for(d=this.items.length-1;0<=d;d--)!a.contains(this.containers[r].element[0],this.items[d].item[0])||this.items[d].item[0]===this.currentItem[0]||q&&!f(this.positionAbs.top+this.offset.click.top,this.items[d].top,this.items[d].height)||(g=this.items[d].item.offset()[k],n=!1,Math.abs(g-l)>Math.abs(g+this.items[d][m]-l)&&(n=!0,g+=this.items[d][m]),Math.abs(g-l)<e&&(e=Math.abs(g-l),h=this.items[d],this.direction=n?"up":"down"));(h||this.options.dropOnEmpty)&&this.currentContainer!==
  this.containers[r]&&(h?this._rearrange(b,h,null,!0):this._rearrange(b,null,this.containers[r].element,!0),this._trigger("change",b,this._uiHash()),this.containers[r]._trigger("change",b,this._uiHash(this)),this.currentContainer=this.containers[r],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[r]._trigger("over",b,this._uiHash(this)),this.containers[r].containerCache.over=1)}},_createHelper:function(b){var e=this.options;b=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],
  [b,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;b.parents("body").length||a("parent"!==e.appendTo?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]);b[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")});b[0].style.width&&!e.forceHelperSize||b.width(this.currentItem.width());
  b[0].style.height&&!e.forceHelperSize||b.height(this.currentItem.height());return b},_adjustOffsetFromHelper:function(b){"string"===typeof b&&(b=b.split(" "));a.isArray(b)&&(b={left:+b[0],top:+b[1]||0});"left"in b&&(this.offset.click.left=b.left+this.margins.left);"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left);"top"in b&&(this.offset.click.top=b.top+this.margins.top);"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},
  _getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),
  10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),
  10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,e,d;e=this.options;"parent"===e.containment&&(e.containment=this.helper[0].parentNode);if("document"===e.containment||"window"===e.containment)this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a("document"===e.containment?document:window).width()-this.helperProportions.width-
  this.margins.left,(a("document"===e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];/^(document|window|parent)$/.test(e.containment)||(b=a(e.containment)[0],e=a(e.containment).offset(),d="hidden"!==a(b).css("overflow"),this.containment=[e.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),
  10)||0)-this.margins.top,e.left+(d?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(d?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(b,e){e||(e=this.position);var d="absolute"===
  b?1:-1,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,c=/(html|body)/i.test(h[0].tagName);return{top:e.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():c?0:h.scrollTop())*d,left:e.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():c?0:h.scrollLeft())*d}},_generatePosition:function(b){var e,
  d,h=this.options;d=b.pageX;e=b.pageY;var c="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(c[0].tagName);"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset());this.originalPosition&&(this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(d=this.containment[0]+
  this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(e=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(d=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(e=this.containment[3]+this.offset.click.top)),h.grid&&(e=this.originalPageY+Math.round((e-this.originalPageY)/h.grid[1])*h.grid[1],e=this.containment?e-this.offset.click.top>=this.containment[1]&&e-this.offset.click.top<=this.containment[3]?
  e:e-this.offset.click.top>=this.containment[1]?e-h.grid[1]:e+h.grid[1]:e,d=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0],d=this.containment?d-this.offset.click.left>=this.containment[0]&&d-this.offset.click.left<=this.containment[2]?d:d-this.offset.click.left>=this.containment[0]?d-h.grid[0]:d+h.grid[0]:d));return{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:d-
  this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_rearrange:function(a,e,d,h){d?d[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling);var c=this.counter=this.counter?++this.counter:1;this._delay(function(){c===this.counter&&this.refreshPositions(!h)})},_clear:function(a,e){this.reverting=!1;var d,h=
  [];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(d in this._storedCSS)if("auto"===this._storedCSS[d]||"static"===this._storedCSS[d])this._storedCSS[d]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!e&&h.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))});!this.fromOutside&&this.domPosition.prev===
  this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||h.push(function(a){this._trigger("update",a,this._uiHash())});this===this.currentContainer||e||(h.push(function(a){this._trigger("remove",a,this._uiHash())}),h.push(function(a){return function(d){a._trigger("receive",d,this._uiHash(this))}}.call(this,this.currentContainer)),h.push(function(a){return function(d){a._trigger("update",d,this._uiHash(this))}}.call(this,this.currentContainer)));
  for(d=this.containers.length-1;0<=d;d--)e||h.push(function(a){return function(d){a._trigger("deactivate",d,this._uiHash(this))}}.call(this,this.containers[d])),this.containers[d].containerCache.over&&(h.push(function(a){return function(d){a._trigger("out",d,this._uiHash(this))}}.call(this,this.containers[d])),this.containers[d].containerCache.over=0);this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove());this._storedOpacity&&this.helper.css("opacity",
  this._storedOpacity);this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex);this.dragging=!1;if(this.cancelHelperRemoval){if(!e){this._trigger("beforeStop",a,this._uiHash());for(d=0;d<h.length;d++)h[d].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1}e||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!==this.currentItem[0]&&this.helper.remove();this.helper=
  null;if(!e){for(d=0;d<h.length;d++)h[d].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=!1;return!0},_trigger:function(){!1===a.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(b){var e=b||this;return{helper:e.helper,placeholder:e.placeholder||a([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:b?b.element:null}}})})(jQuery);
  (function(a,g){a.effects={effect:{}};(function(a,c){function b(a,d,b){var h=g[d.type]||{};if(null==a)return b||!d.def?null:d.def;a=h.floor?~~a:parseFloat(a);return isNaN(a)?d.def:h.mod?(a+h.mod)%h.mod:0>a?0:h.max<a?h.max:a}function e(d){var b=m(),h=b._rgba=[];d=d.toLowerCase();x(k,function(a,e){var c,f=e.re.exec(d);c=f&&e.parse(f);f=e.space||"rgba";if(c)return c=b[f](c),b[l[f].cache]=c[l[f].cache],h=b._rgba=c._rgba,!1});return h.length?("0,0,0,0"===h.join()&&a.extend(h,r.transparent),b):r[d]}function d(a,
  d,b){b=(b+1)%1;return 1>6*b?a+(d-a)*b*6:1>2*b?d:2>3*b?a+(d-a)*(2/3-b)*6:a}var h=/^([\-+])=\s*(\d+\.?\d*)/,k=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],
  16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],m=a.Color=function(d,b,h,e){return new a.Color.fn.parse(d,b,h,e)},l={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,
  type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},g={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},n=m.support={},q=a("<p>")[0],r,x=a.each;q.style.cssText="background-color:rgba(1,1,1,.5)";n.rgba=-1<q.style.backgroundColor.indexOf("rgba");x(l,function(a,d){d.cache="_"+a;d.props.alpha={idx:3,type:"percent",def:1}});m.fn=a.extend(m.prototype,{parse:function(d,h,k,g){if(d===c)return this._rgba=[null,null,
  null,null],this;if(d.jquery||d.nodeType)d=a(d).css(h),h=c;var p=this,n=a.type(d),q=this._rgba=[];h!==c&&(d=[d,h,k,g],n="array");if("string"===n)return this.parse(e(d)||r._default);if("array"===n)return x(l.rgba.props,function(a,h){q[h.idx]=b(d[h.idx],h)}),this;if("object"===n)return d instanceof m?x(l,function(a,b){d[b.cache]&&(p[b.cache]=d[b.cache].slice())}):x(l,function(h,e){var c=e.cache;x(e.props,function(a,h){if(!p[c]&&e.to){if("alpha"===a||null==d[a])return;p[c]=e.to(p._rgba)}p[c][h.idx]=b(d[a],
  h,!0)});p[c]&&0>a.inArray(null,p[c].slice(0,3))&&(p[c][3]=1,e.from&&(p._rgba=e.from(p[c])))}),this},is:function(a){var d=m(a),b=!0,h=this;x(l,function(a,e){var c,f=d[e.cache];f&&(c=h[e.cache]||e.to&&e.to(h._rgba)||[],x(e.props,function(a,d){if(null!=f[d.idx])return b=f[d.idx]===c[d.idx]}));return b});return b},_space:function(){var a=[],d=this;x(l,function(b,h){d[h.cache]&&a.push(b)});return a.pop()},transition:function(a,d){var h=m(a),e=h._space(),c=l[e],f=0===this.alpha()?m("transparent"):this,
  k=f[c.cache]||c.to(f._rgba),r=k.slice(),h=h[c.cache];x(c.props,function(a,e){var c=e.idx,f=k[c],m=h[c],l=g[e.type]||{};null!==m&&(null===f?r[c]=m:(l.mod&&(m-f>l.mod/2?f+=l.mod:f-m>l.mod/2&&(f-=l.mod)),r[c]=b((m-f)*d+f,e)))});return this[e](r)},blend:function(d){if(1===this._rgba[3])return this;var b=this._rgba.slice(),h=b.pop(),e=m(d)._rgba;return m(a.map(b,function(a,d){return(1-h)*e[d]+h*a}))},toRgbaString:function(){var d="rgba(",b=a.map(this._rgba,function(a,d){return null==a?2<d?1:0:a});1===
  b[3]&&(b.pop(),d="rgb(");return d+b.join()+")"},toHslaString:function(){var d="hsla(",b=a.map(this.hsla(),function(a,d){null==a&&(a=2<d?1:0);d&&3>d&&(a=Math.round(100*a)+"%");return a});1===b[3]&&(b.pop(),d="hsl(");return d+b.join()+")"},toHexString:function(d){var b=this._rgba.slice(),h=b.pop();d&&b.push(~~(255*h));return"#"+a.map(b,function(a){a=(a||0).toString(16);return 1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}});m.fn.parse.prototype=
  m.fn;l.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var d=a[0]/255,b=a[1]/255,h=a[2]/255;a=a[3];var e=Math.max(d,b,h),c=Math.min(d,b,h),f=e-c,k=e+c,m=.5*k;return[Math.round(c===e?0:d===e?60*(b-h)/f+360:b===e?60*(h-d)/f+120:60*(d-b)/f+240)%360,0===f?0:.5>=m?f/k:f/(2-k),m,null==a?1:a]};l.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,h=a[1],e=a[2];a=a[3];h=.5>=e?e*(1+h):e+h-e*h;e=2*e-h;return[Math.round(255*
  d(e,h,b+1/3)),Math.round(255*d(e,h,b)),Math.round(255*d(e,h,b-1/3)),a]};x(l,function(d,e){var k=e.props,l=e.cache,g=e.to,r=e.from;m.fn[d]=function(d){g&&!this[l]&&(this[l]=g(this._rgba));if(d===c)return this[l].slice();var h,e=a.type(d),p="array"===e||"object"===e?d:arguments,n=this[l].slice();x(k,function(a,d){var h=p["object"===e?a:d.idx];null==h&&(h=n[d.idx]);n[d.idx]=b(h,d)});return r?(h=m(r(n)),h[l]=n,h):m(n)};x(k,function(b,e){m.fn[b]||(m.fn[b]=function(c){var k=a.type(c),m="alpha"===b?this._hsla?
  "hsla":"rgba":d,l=this[m](),g=l[e.idx];if("undefined"===k)return g;"function"===k&&(c=c.call(this,g),k=a.type(c));if(null==c&&e.empty)return this;"string"===k&&(k=h.exec(c))&&(c=g+parseFloat(k[2])*("+"===k[1]?1:-1));l[e.idx]=c;return this[m](l)})})});m.hook=function(d){d=d.split(" ");x(d,function(d,b){a.cssHooks[b]={set:function(d,h){var c,k="";if("transparent"!==h&&("string"!==a.type(h)||(c=e(h)))){h=m(c||h);if(!n.rgba&&1!==h._rgba[3]){for(c="backgroundColor"===b?d.parentNode:d;(""===k||"transparent"===
  k)&&c&&c.style;)try{k=a.css(c,"backgroundColor"),c=c.parentNode}catch(l){}h=h.blend(k&&"transparent"!==k?k:"_default")}h=h.toRgbaString()}try{d.style[b]=h}catch(l){}}};a.fx.step[b]=function(d){d.colorInit||(d.start=m(d.elem,b),d.end=m(d.end),d.colorInit=!0);a.cssHooks[b].set(d.elem,d.start.transition(d.end,d.pos))}})};m.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");a.cssHooks.borderColor=
  {expand:function(a){var d={};x(["Top","Right","Bottom","Left"],function(b,h){d["border"+h+"Color"]=a});return d}};r=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery);(function(){function f(b){var d,h=b.ownerDocument.defaultView?
  b.ownerDocument.defaultView.getComputedStyle(b,null):b.currentStyle,c={};if(h&&h.length&&h[0]&&h[h[0]])for(b=h.length;b--;)d=h[b],"string"===typeof h[d]&&(c[a.camelCase(d)]=h[d]);else for(d in h)"string"===typeof h[d]&&(c[d]=h[d]);return c}var c=["add","remove","toggle"],b={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,d){a.fx.step[d]=function(a){if("none"!==
  a.end&&!a.setAttr||1===a.pos&&!a.setAttr)jQuery.style(a.elem,d,a.end),a.setAttr=!0}});a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))});a.effects.animateClass=function(e,d,h,k){var m=a.speed(d,h,k);return this.queue(function(){var d=a(this),h=d.attr("class")||"",k,g=m.children?d.find("*").addBack():d,g=g.map(function(){return{el:a(this),start:f(this)}});k=function(){a.each(c,function(a,b){if(e[b])d[b+"Class"](e[b])})};k();g=g.map(function(){this.end=
  f(this.el[0]);var d=this.start,h=this.end,e={},c,k;for(c in h)k=h[c],d[c]===k||b[c]||!a.fx.step[c]&&isNaN(parseFloat(k))||(e[c]=k);this.diff=e;return this});d.attr("class",h);g=g.map(function(){var d=this,b=a.Deferred(),h=a.extend({},m,{queue:!1,complete:function(){b.resolve(d)}});this.el.animate(this.diff,h);return b.promise()});a.when.apply(a,g.get()).done(function(){k();a.each(arguments,function(){var d=this.el;a.each(this.diff,function(a){d.css(a,"")})});m.complete.call(d[0])})})};a.fn.extend({addClass:function(b){return function(d,
  h,c,f){return h?a.effects.animateClass.call(this,{add:d},h,c,f):b.apply(this,arguments)}}(a.fn.addClass),removeClass:function(b){return function(d,h,c,f){return 1<arguments.length?a.effects.animateClass.call(this,{remove:d},h,c,f):b.apply(this,arguments)}}(a.fn.removeClass),toggleClass:function(b){return function(d,h,c,f,l){return"boolean"===typeof h||h===g?c?a.effects.animateClass.call(this,h?{add:d}:{remove:d},c,f,l):b.apply(this,arguments):a.effects.animateClass.call(this,{toggle:d},h,c,f)}}(a.fn.toggleClass),
  switchClass:function(b,d,h,c,f){return a.effects.animateClass.call(this,{add:d,remove:b},h,c,f)}})})();(function(){function f(b,e,d,h){a.isPlainObject(b)&&(e=b,b=b.effect);b={effect:b};null==e&&(e={});a.isFunction(e)&&(h=e,d=null,e={});if("number"===typeof e||a.fx.speeds[e])h=d,d=e,e={};a.isFunction(d)&&(h=d,d=null);e&&a.extend(b,e);d=d||e.duration;b.duration=a.fx.off?0:"number"===typeof d?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default;b.complete=h||e.complete;return b}function c(b){return!b||
  "number"===typeof b||a.fx.speeds[b]||"string"===typeof b&&!a.effects.effect[b]||a.isFunction(b)||"object"===typeof b&&!b.effect?!0:!1}a.extend(a.effects,{version:"1.10.3",save:function(a,e){for(var d=0;d<e.length;d++)null!==e[d]&&a.data("ui-effects-"+e[d],a[0].style[e[d]])},restore:function(a,e){var d,h;for(h=0;h<e.length;h++)null!==e[h]&&(d=a.data("ui-effects-"+e[h]),d===g&&(d=""),a.css(e[h],d))},setMode:function(a,e){"toggle"===e&&(e=a.is(":hidden")?"show":"hide");return e},getBaseline:function(a,
  e){var d,h;switch(a[0]){case "top":d=0;break;case "middle":d=.5;break;case "bottom":d=1;break;default:d=a[0]/e.height}switch(a[1]){case "left":h=0;break;case "center":h=.5;break;case "right":h=1;break;default:h=a[1]/e.width}return{x:h,y:d}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var e={width:b.outerWidth(!0),height:b.outerHeight(!0),"float":b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",
  margin:0,padding:0}),h={width:b.width(),height:b.height()},c=document.activeElement;try{c.id}catch(f){c=document.body}b.wrap(d);(b[0]===c||a.contains(b[0],c))&&a(c).focus();d=b.parent();"static"===b.css("position")?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(e,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){e[d]=b.css(d);isNaN(parseInt(e[d],10))&&(e[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",
  bottom:"auto"}));b.css(h);return d.css(e).show()},removeWrapper:function(b){var e=document.activeElement;b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===e||a.contains(b[0],e))&&a(e).focus());return b},setTransition:function(b,e,d,h){h=h||{};a.each(e,function(a,e){var c=b.cssUnit(e);0<c[0]&&(h[e]=c[0]*d+c[1])});return h}});a.fn.extend({effect:function(){function b(d){function b(){a.isFunction(f)&&f.call(h[0]);a.isFunction(d)&&d()}var h=a(this),f=e.complete,g=e.mode;(h.is(":hidden")?
  "hide"===g:"show"===g)?(h[g](),b()):c.call(h[0],e,b)}var e=f.apply(this,arguments),d=e.mode,h=e.queue,c=a.effects.effect[e.effect];return a.fx.off||!c?d?this[d](e.duration,e.complete):this.each(function(){e.complete&&e.complete.call(this)}):!1===h?this.each(b):this.queue(h||"fx",b)},show:function(a){return function(e){if(c(e))return a.apply(this,arguments);var d=f.apply(this,arguments);d.mode="show";return this.effect.call(this,d)}}(a.fn.show),hide:function(a){return function(e){if(c(e))return a.apply(this,
  arguments);var d=f.apply(this,arguments);d.mode="hide";return this.effect.call(this,d)}}(a.fn.hide),toggle:function(a){return function(e){if(c(e)||"boolean"===typeof e)return a.apply(this,arguments);var d=f.apply(this,arguments);d.mode="toggle";return this.effect.call(this,d)}}(a.fn.toggle),cssUnit:function(b){var e=this.css(b),d=[];a.each(["em","px","%","pt"],function(a,b){0<e.indexOf(b)&&(d=[parseFloat(e),b])});return d}})})();(function(){var f={};a.each(["Quad","Cubic","Quart","Quint","Expo"],
  function(a,b){f[b]=function(b){return Math.pow(b,a+2)}});a.extend(f,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,e=4;a<((b=Math.pow(2,--e))-1)/11;);return 1/Math.pow(4,3-e)-7.5625*Math.pow((3*b-2)/22-a,2)}});a.each(f,function(c,b){a.easing["easeIn"+c]=b;a.easing["easeOut"+c]=function(a){return 1-
  b(1-a)};a.easing["easeInOut"+c]=function(a){return.5>a?b(2*a)/2:1-b(-2*a+2)/2}})})()})(jQuery);
  (function(a,g){var f=0,c={},b={};c.height=c.paddingTop=c.paddingBottom=c.borderTopWidth=c.borderBottomWidth="hide";b.height=b.paddingTop=b.paddingBottom=b.borderTopWidth=b.borderBottomWidth="show";a.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var b=this.options;
  this.prevShow=this.prevHide=a();this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist");b.collapsible||!1!==b.active&&null!=b.active||(b.active=0);this._processPanels();0>b.active&&(b.active+=this.headers.length);this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():a(),content:this.active.length?this.active.next():a()}},_createIcons:function(){var b=this.options.icons;b&&(a("<span>").addClass("ui-accordion-header-icon ui-icon "+
  b.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(b.header).addClass(b.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var a;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&
  this.removeAttribute("id")});this._destroyIcons();a=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")});"content"!==this.options.heightStyle&&a.css("height","")},_setOption:function(a,d){"active"===a?this._activate(d):
  ("event"===a&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(d)),this._super(a,d),"collapsible"!==a||d||!1!==this.options.active||this._activate(0),"icons"===a&&(this._destroyIcons(),d&&this._createIcons()),"disabled"===a&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!d))},_keydown:function(b){if(!b.altKey&&!b.ctrlKey){var d=a.ui.keyCode,h=this.headers.length,c=this.headers.index(b.target),f=!1;switch(b.keyCode){case d.RIGHT:case d.DOWN:f=
  this.headers[(c+1)%h];break;case d.LEFT:case d.UP:f=this.headers[(c-1+h)%h];break;case d.SPACE:case d.ENTER:this._eventHandler(b);break;case d.HOME:f=this.headers[0];break;case d.END:f=this.headers[h-1]}f&&(a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),b.preventDefault())}},_panelKeyDown:function(b){b.keyCode===a.ui.keyCode.UP&&b.ctrlKey&&a(b.currentTarget).prev().focus()},refresh:function(){var b=this.options;this._processPanels();!1===b.active&&!0===b.collapsible||!this.headers.length?
  (b.active=!1,this.active=a()):!1===b.active?this._activate(0):this.active.length&&!a.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(b.active=!1,this.active=a()):this._activate(Math.max(0,b.active-1)):b.active=this.headers.index(this.active);this._destroyIcons();this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all");this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},
  _refresh:function(){var b,d=this.options,h=d.heightStyle,c=this.element.parent(),m=this.accordionId="ui-accordion-"+(this.element.attr("id")||++f);this.active=this._findActive(d.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all");this.active.next().addClass("ui-accordion-content-active").show();this.headers.attr("role","tab").each(function(d){var b=a(this),h=b.attr("id"),c=b.next(),e=c.attr("id");h||(h=m+"-header-"+d,b.attr("id",h));e||(e=m+"-panel-"+
  d,c.attr("id",e));b.attr("aria-controls",e);c.attr("aria-labelledby",h)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide();this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0);this._createIcons();this._setupEvents(d.event);"fill"===h?(b=c.height(),this.element.siblings(":visible").each(function(){var d=
  a(this),h=d.css("position");"absolute"!==h&&"fixed"!==h&&(b-=d.outerHeight(!0))}),this.headers.each(function(){b-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,b-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===h&&(b=0,this.headers.next().each(function(){b=Math.max(b,a(this).css("height","").height())}).height(b))},_activate:function(b){b=this._findActive(b)[0];b!==this.active[0]&&(b=b||this.active[0],this._eventHandler({target:b,
  currentTarget:b,preventDefault:a.noop}))},_findActive:function(b){return"number"===typeof b?this.headers.eq(b):a()},_setupEvents:function(b){var d={keydown:"_keydown"};b&&a.each(b.split(" "),function(a,b){d[b]="_eventHandler"});this._off(this.headers.add(this.headers.next()));this._on(this.headers,d);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(b){var d=this.options,h=this.active,c=a(b.currentTarget),f=
  c[0]===h[0],l=f&&d.collapsible,g=l?a():c.next(),n=h.next(),g={oldHeader:h,oldPanel:n,newHeader:l?a():c,newPanel:g};b.preventDefault();f&&!d.collapsible||!1===this._trigger("beforeActivate",b,g)||(d.active=l?!1:this.headers.index(c),this.active=f?a():c,this._toggle(g),h.removeClass("ui-accordion-header-active ui-state-active"),d.icons&&h.children(".ui-accordion-header-icon").removeClass(d.icons.activeHeader).addClass(d.icons.header),f||(c.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),
  d.icons&&c.children(".ui-accordion-header-icon").removeClass(d.icons.header).addClass(d.icons.activeHeader),c.next().addClass("ui-accordion-content-active")))},_toggle:function(b){var d=b.newPanel,h=this.prevShow.length?this.prevShow:b.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0);this.prevShow=d;this.prevHide=h;this.options.animate?this._animate(d,h,b):(h.hide(),d.show(),this._toggleComplete(b));h.attr({"aria-expanded":"false","aria-hidden":"true"});h.prev().attr("aria-selected","false");
  d.length&&h.length?h.prev().attr("tabIndex",-1):d.length&&this.headers.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1);d.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(a,d,h){var f,m,l,g=this,n=0,q=a.length&&(!d.length||a.index()<d.index()),r=this.options.animate||{},q=q&&r.down||r,x=function(){g._toggleComplete(h)};"number"===typeof q&&(l=q);"string"===typeof q&&(m=q);m=m||q.easing||r.easing;l=l||
  q.duration||r.duration;if(!d.length)return a.animate(b,l,m,x);if(!a.length)return d.animate(c,l,m,x);f=a.show().outerHeight();d.animate(c,{duration:l,easing:m,step:function(a,d){d.now=Math.round(a)}});a.hide().animate(b,{duration:l,easing:m,complete:x,step:function(a,b){b.now=Math.round(a);"height"!==b.prop?n+=b.now:"content"!==g.options.heightStyle&&(b.now=Math.round(f-d.outerHeight()-n),n=0)}})},_toggleComplete:function(a){var d=a.oldPanel;d.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all");
  d.length&&(d.parent()[0].className=d.parent()[0].className);this._trigger("activate",null,a)}})})(jQuery);
  (function(a,g){var f=0;a.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var c,b,e,d=this.element[0].nodeName.toLowerCase(),h="textarea"===d,d="input"===d;this.isMultiLine=h?!0:d?!1:this.element.prop("isContentEditable");this.valueMethod=this.element[h||
  d?"val":"text"];this.isNewMenu=!0;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off");this._on(this.element,{keydown:function(d){if(this.element.prop("readOnly"))b=e=c=!0;else{b=e=c=!1;var h=a.ui.keyCode;switch(d.keyCode){case h.PAGE_UP:c=!0;this._move("previousPage",d);break;case h.PAGE_DOWN:c=!0;this._move("nextPage",d);break;case h.UP:c=!0;this._keyEvent("previous",d);break;case h.DOWN:c=!0;this._keyEvent("next",d);break;case h.ENTER:case h.NUMPAD_ENTER:this.menu.active&&
  (c=!0,d.preventDefault(),this.menu.select(d));break;case h.TAB:this.menu.active&&this.menu.select(d);break;case h.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(d),d.preventDefault());break;default:b=!0,this._searchTimeout(d)}}},keypress:function(d){if(c)c=!1,this.isMultiLine&&!this.menu.element.is(":visible")||d.preventDefault();else if(!b){var h=a.ui.keyCode;switch(d.keyCode){case h.PAGE_UP:this._move("previousPage",d);break;case h.PAGE_DOWN:this._move("nextPage",d);
  break;case h.UP:this._keyEvent("previous",d);break;case h.DOWN:this._keyEvent("next",d)}}},input:function(a){e?(e=!1,a.preventDefault()):this._searchTimeout(a)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(a){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(a),this._change(a))}});this._initSource();this.menu=a("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu");this._on(this.menu.element,
  {mousedown:function(d){d.preventDefault();this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur});var b=this.menu.element[0];a(d.target).closest(".ui-menu-item").length||this._delay(function(){var d=this;this.document.one("mousedown",function(h){h.target===d.element[0]||h.target===b||a.contains(b,h.target)||d.close()})})},menufocus:function(d,b){if(this.isNewMenu&&(this.isNewMenu=!1,d.originalEvent&&/^mouse/.test(d.originalEvent.type))){this.menu.blur();this.document.one("mousemove",function(){a(d.target).trigger(d.originalEvent)});
  return}var h=b.item.data("ui-autocomplete-item");!1!==this._trigger("focus",d,{item:h})?d.originalEvent&&/^key/.test(d.originalEvent.type)&&this._value(h.value):this.liveRegion.text(h.value)},menuselect:function(a,d){var b=d.item.data("ui-autocomplete-item"),h=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=h,this._delay(function(){this.previous=h;this.selectedItem=b}));!1!==this._trigger("select",a,{item:b})&&this._value(b.value);this.term=this._value();
  this.close(a);this.selectedItem=b}});this.liveRegion=a("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element);this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(a,b){this._super(a,b);"source"===a&&this._initSource();
  "appendTo"===a&&this.menu.element.appendTo(this._appendTo());"disabled"===a&&b&&this.xhr&&this.xhr.abort()},_appendTo:function(){var c=this.options.appendTo;c&&(c=c.jquery||c.nodeType?a(c):this.document.find(c).eq(0));c||(c=this.element.closest(".ui-front"));c.length||(c=this.document[0].body);return c},_initSource:function(){var c,b,e=this;a.isArray(this.options.source)?(c=this.options.source,this.source=function(d,b){b(a.ui.autocomplete.filter(c,d.term))}):"string"===typeof this.options.source?
  (b=this.options.source,this.source=function(d,h){e.xhr&&e.xhr.abort();e.xhr=a.ajax({url:b,data:d,dataType:"json",success:function(a){h(a)},error:function(){h([])}})}):this.source=this.options.source},_searchTimeout:function(a){clearTimeout(this.searching);this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,a))},this.options.delay)},search:function(a,b){a=null!=a?a:this._value();this.term=this._value();if(a.length<this.options.minLength)return this.close(b);
  if(!1!==this._trigger("search",b))return this._search(a)},_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:a},this._response())},_response:function(){var a=this,b=++f;return function(e){b===f&&a.__response(e);a.pending--;a.pending||a.element.removeClass("ui-autocomplete-loading")}},__response:function(a){a&&(a=this._normalize(a));this._trigger("response",null,{content:a});!this.options.disabled&&a&&a.length&&!this.cancelSearch?
  (this._suggest(a),this._trigger("open")):this._close()},close:function(a){this.cancelSearch=!0;this._close(a)},_close:function(a){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",a))},_change:function(a){this.previous!==this._value()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(c){return c.length&&c[0].label&&c[0].value?c:a.map(c,function(b){return"string"===typeof b?{label:b,value:b}:a.extend({label:b.label||
  b.value,value:b.value||b.label},b)})},_suggest:function(c){var b=this.menu.element.empty();this._renderMenu(b,c);this.isNewMenu=!0;this.menu.refresh();b.show();this._resizeMenu();b.position(a.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(c,b){var e=this;a.each(b,function(a,b){e._renderItemData(c,b)})},_renderItemData:function(a,
  b){return this._renderItem(a,b).data("ui-autocomplete-item",b)},_renderItem:function(c,b){return a("<li>").append(a("<a>").text(b.label)).appendTo(c)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.isFirstItem()&&/^previous/.test(a)||this.menu.isLastItem()&&/^next/.test(a))this._value(this.term),this.menu.blur();else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(a,
  b){if(!this.isMultiLine||this.menu.element.is(":visible"))this._move(a,b),b.preventDefault()}});a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(c,b){var e=new RegExp(a.ui.autocomplete.escapeRegex(b),"i");return a.grep(c,function(a){return e.test(a.label||a.value||a)})}});a.widget("ui.autocomplete",a.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(a){return a+(1<a?" results are":" result is")+
  " available, use up and down arrow keys to navigate."}}},__response:function(a){var b;this._superApply(arguments);this.options.disabled||this.cancelSearch||(b=a&&a.length?this.options.messages.results(a.length):this.options.messages.noResults,this.liveRegion.text(b))}})})(jQuery);
  (function(a,g){var f,c,b,e,d=function(){var d=a(this);setTimeout(function(){d.find(":ui-button").button("refresh")},1)},h=function(d){var b=d.name,h=d.form,c=a([]);b&&(b=b.replace(/'/g,"\\'"),c=h?a(h).find("[name='"+b+"']"):a("[name='"+b+"']",d.ownerDocument).filter(function(){return!this.form}));return c};a.widget("ui.button",{version:"1.10.3",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+
  this.eventNamespace).bind("reset"+this.eventNamespace,d);"boolean"!==typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled);this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var k=this,m=this.options,l="checkbox"===this.type||"radio"===this.type,g=l?"":"ui-state-active";null===m.label&&(m.label="input"===this.type?this.buttonElement.val():this.buttonElement.html());this._hoverable(this.buttonElement);
  this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter"+this.eventNamespace,function(){m.disabled||this===f&&a(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){m.disabled||a(this).removeClass(g)}).bind("click"+this.eventNamespace,function(a){m.disabled&&(a.preventDefault(),a.stopImmediatePropagation())});this.element.bind("focus"+this.eventNamespace,function(){k.buttonElement.addClass("ui-state-focus")}).bind("blur"+
  this.eventNamespace,function(){k.buttonElement.removeClass("ui-state-focus")});l&&(this.element.bind("change"+this.eventNamespace,function(){e||k.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(a){m.disabled||(e=!1,c=a.pageX,b=a.pageY)}).bind("mouseup"+this.eventNamespace,function(a){m.disabled||c===a.pageX&&b===a.pageY||(e=!0)}));"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(m.disabled||e)return!1}):"radio"===this.type?this.buttonElement.bind("click"+
  this.eventNamespace,function(){if(m.disabled||e)return!1;a(this).addClass("ui-state-active");k.buttonElement.attr("aria-pressed","true");var d=k.element[0];h(d).not(d).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(m.disabled)return!1;a(this).addClass("ui-state-active");f=this;k.document.one("mouseup",function(){f=null})}).bind("mouseup"+this.eventNamespace,function(){if(m.disabled)return!1;
  a(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(d){if(m.disabled)return!1;d.keyCode!==a.ui.keyCode.SPACE&&d.keyCode!==a.ui.keyCode.ENTER||a(this).addClass("ui-state-active")}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(d){d.keyCode===a.ui.keyCode.SPACE&&a(this).click()}));this._setOption("disabled",m.disabled);this._resetButton()},
  _determineButtonType:function(){var a,d;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button";"checkbox"===this.type||"radio"===this.type?(a=this.element.parents().last(),d="label[for='"+this.element.attr("id")+"']",this.buttonElement=a.find(d),this.buttonElement.length||(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(d),this.buttonElement.length||(this.buttonElement=
  a.find(d))),this.element.addClass("ui-helper-hidden-accessible"),(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",a)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  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").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
  this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(a,d){this._super(a,d);"disabled"===a?d?this.element.prop("disabled",!0):this.element.prop("disabled",!1):this._resetButton()},refresh:function(){var d=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");d!==this.options.disabled&&this._setOption("disabled",d);"radio"===this.type?h(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
  "true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)this.options.label&&this.element.val(this.options.label);else{var d=this.buttonElement.removeClass("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"),
  b=a("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(d.empty()).text(),h=this.options.icons,c=h.primary&&h.secondary,e=[];h.primary||h.secondary?(this.options.text&&e.push("ui-button-text-icon"+(c?"s":h.primary?"-primary":"-secondary")),h.primary&&d.prepend("<span class='ui-button-icon-primary ui-icon "+h.primary+"'></span>"),h.secondary&&d.append("<span class='ui-button-icon-secondary ui-icon "+h.secondary+"'></span>"),this.options.text||(e.push(c?"ui-button-icons-only":
  "ui-button-icon-only"),this.hasTitle||d.attr("title",a.trim(b)))):e.push("ui-button-text-only");d.addClass(e.join(" "))}}});a.widget("ui.buttonset",{version:"1.10.3",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(a,d){"disabled"===a&&this.buttons.button("option",a,d);this._super(a,d)},refresh:function(){var d=
  "rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(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 a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})})(jQuery);
  (function(a,g){function f(){this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._inDialog=this._datepickerShowing=!1;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".split(" "),monthNamesShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),dayNames:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),dayNamesShort:"Sun Mon Tue Wed Thu Fri Sat".split(" "),dayNamesMin:"Su Mo Tu We Th Fr Sa".split(" "),weekHeader:"Wk",dateFormat:"mm/dd/yy",
  firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,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:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};a.extend(this._defaults,this.regional[""]);this.dpDiv=c(a("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function c(d){return d.delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a","mouseout",function(){a(this).removeClass("ui-state-hover");
  -1!==this.className.indexOf("ui-datepicker-prev")&&a(this).removeClass("ui-datepicker-prev-hover");-1!==this.className.indexOf("ui-datepicker-next")&&a(this).removeClass("ui-datepicker-next-hover")}).delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a","mouseover",function(){a.datepicker._isDisabledDatepicker(e.inline?d.parent()[0]:e.input[0])||(a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),a(this).addClass("ui-state-hover"),
  -1!==this.className.indexOf("ui-datepicker-prev")&&a(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&a(this).addClass("ui-datepicker-next-hover"))})}function b(d,b){a.extend(d,b);for(var c in b)null==b[c]&&(d[c]=b[c]);return d}a.extend(a.ui,{datepicker:{version:"1.10.3"}});var e;a.extend(f.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){b(this._defaults,a||{});return this},_attachDatepicker:function(d,
  b){var c,e,f;c=d.nodeName.toLowerCase();e="div"===c||"span"===c;d.id||(this.uuid+=1,d.id="dp"+this.uuid);f=this._newInst(a(d),e);f.settings=a.extend({},b||{});"input"===c?this._connectDatepicker(d,f):e&&this._inlineDatepicker(d,f)},_newInst:function(d,b){return{id:d[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:d,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:b?c(a("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):
  this.dpDiv}},_connectDatepicker:function(d,b){var c=a(d);b.append=a([]);b.trigger=a([]);c.hasClass(this.markerClassName)||(this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(b),a.data(d,"datepicker",b),b.settings.disabled&&this._disableDatepicker(d))},_attachments:function(d,b){var c,e;c=this._get(b,"appendText");var f=this._get(b,"isRTL");b.append&&b.append.remove();c&&(b.append=a("<span class='"+this._appendClass+
  "'>"+c+"</span>"),d[f?"before":"after"](b.append));d.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");"focus"!==c&&"both"!==c||d.focus(this._showDatepicker);if("button"===c||"both"===c)c=this._get(b,"buttonText"),e=this._get(b,"buttonImage"),b.trigger=a(this._get(b,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:e,alt:c,title:c}):a("<button type='button'></button>").addClass(this._triggerClass).html(e?a("<img/>").attr({src:e,alt:c,title:c}):
  c)),d[f?"before":"after"](b.trigger),b.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput===d[0]?a.datepicker._hideDatepicker():(a.datepicker._datepickerShowing&&a.datepicker._lastInput!==d[0]&&a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(d[0]));return!1})},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,e,f,g=new Date(2009,11,20),n=this._get(a,"dateFormat");n.match(/[DM]/)&&(b=function(a){for(f=e=c=0;f<a.length;f++)a[f].length>c&&
  (c=a[f].length,e=f);return e},g.setMonth(b(this._get(a,n.match(/MM/)?"monthNames":"monthNamesShort"))),g.setDate(b(this._get(a,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-g.getDay()));a.input.attr("size",this._formatDate(a,g).length)}},_inlineDatepicker:function(d,b){var c=a(d);c.hasClass(this.markerClassName)||(c.addClass(this.markerClassName).append(b.dpDiv),a.data(d,"datepicker",b),this._setDate(b,this._getDefaultDate(b),!0),this._updateDatepicker(b),this._updateAlternate(b),b.settings.disabled&&
  this._disableDatepicker(d),b.dpDiv.css("display","block"))},_dialogDatepicker:function(d,h,c,e,f){var g;d=this._dialogInst;d||(this.uuid+=1,d="dp"+this.uuid,this._dialogInput=a("<input type='text' id='"+d+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},a.data(this._dialogInput[0],"datepicker",d));b(d.settings,e||{});h=h&&h.constructor===Date?
  this._formatDate(d,h):h;this._dialogInput.val(h);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;this._pos||(h=document.documentElement.clientWidth,e=document.documentElement.clientHeight,f=document.documentElement.scrollLeft||document.body.scrollLeft,g=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+f,e/2-150+g]);this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");d.settings.onSelect=c;this._inDialog=!0;this.dpDiv.addClass(this._dialogClass);
  this._showDatepicker(this._dialogInput[0]);a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],"datepicker",d);return this},_destroyDatepicker:function(d){var b,c=a(d),e=a.data(d,"datepicker");c.hasClass(this.markerClassName)&&(b=d.nodeName.toLowerCase(),a.removeData(d,"datepicker"),"input"===b?(e.append.remove(),e.trigger.remove(),c.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",
  this._doKeyUp)):"div"!==b&&"span"!==b||c.removeClass(this.markerClassName).empty())},_enableDatepicker:function(d){var b,c=a(d),e=a.data(d,"datepicker");if(c.hasClass(this.markerClassName)){b=d.nodeName.toLowerCase();if("input"===b)d.disabled=!1,e.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"===b||"span"===b)b=c.children("."+this._inlineClass),b.children().removeClass("ui-state-disabled"),b.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",
  !1);this._disabledInputs=a.map(this._disabledInputs,function(a){return a===d?null:a})}},_disableDatepicker:function(d){var b,c=a(d),e=a.data(d,"datepicker");if(c.hasClass(this.markerClassName)){b=d.nodeName.toLowerCase();if("input"===b)d.disabled=!0,e.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"===b||"span"===b)b=c.children("."+this._inlineClass),b.children().addClass("ui-state-disabled"),b.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",
  !0);this._disabledInputs=a.map(this._disabledInputs,function(a){return a===d?null:a});this._disabledInputs[this._disabledInputs.length]=d}},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]===a)return!0;return!1},_getInst:function(d){try{return a.data(d,"datepicker")}catch(b){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(d,h,c){var e,f,p,n,q=this._getInst(d);if(2===arguments.length&&"string"===
  typeof h)return"defaults"===h?a.extend({},a.datepicker._defaults):q?"all"===h?a.extend({},q.settings):this._get(q,h):null;e=h||{};"string"===typeof h&&(e={},e[h]=c);q&&(this._curInst===q&&this._hideDatepicker(),f=this._getDateDatepicker(d,!0),p=this._getMinMaxDate(q,"min"),n=this._getMinMaxDate(q,"max"),b(q.settings,e),null!==p&&e.dateFormat!==g&&e.minDate===g&&(q.settings.minDate=this._formatDate(q,p)),null!==n&&e.dateFormat!==g&&e.maxDate===g&&(q.settings.maxDate=this._formatDate(q,n)),"disabled"in
  e&&(e.disabled?this._disableDatepicker(d):this._enableDatepicker(d)),this._attachments(a(d),q),this._autoSize(q),this._setDate(q,f),this._updateAlternate(q),this._updateDatepicker(q))},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){var c=this._getInst(a);c&&(this._setDate(c,b),this._updateDatepicker(c),this._updateAlternate(c))},_getDateDatepicker:function(a,b){var c=
  this._getInst(a);c&&!c.inline&&this._setDateFromField(c,b);return c?this._getDate(c):null},_doKeyDown:function(d){var b,c=a.datepicker._getInst(d.target);b=!0;var e=c.dpDiv.is(".ui-datepicker-rtl");c._keyEvent=!0;if(a.datepicker._datepickerShowing)switch(d.keyCode){case 9:a.datepicker._hideDatepicker();b=!1;break;case 13:return b=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",c.dpDiv),b[0]&&a.datepicker._selectDay(d.target,c.selectedMonth,c.selectedYear,b[0]),(d=a.datepicker._get(c,
  "onSelect"))?(b=a.datepicker._formatDate(c),d.apply(c.input?c.input[0]:null,[b,c])):a.datepicker._hideDatepicker(),!1;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(d.target,d.ctrlKey?-a.datepicker._get(c,"stepBigMonths"):-a.datepicker._get(c,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(d.target,d.ctrlKey?+a.datepicker._get(c,"stepBigMonths"):+a.datepicker._get(c,"stepMonths"),"M");break;case 35:(d.ctrlKey||d.metaKey)&&a.datepicker._clearDate(d.target);
  b=d.ctrlKey||d.metaKey;break;case 36:(d.ctrlKey||d.metaKey)&&a.datepicker._gotoToday(d.target);b=d.ctrlKey||d.metaKey;break;case 37:(d.ctrlKey||d.metaKey)&&a.datepicker._adjustDate(d.target,e?1:-1,"D");b=d.ctrlKey||d.metaKey;d.originalEvent.altKey&&a.datepicker._adjustDate(d.target,d.ctrlKey?-a.datepicker._get(c,"stepBigMonths"):-a.datepicker._get(c,"stepMonths"),"M");break;case 38:(d.ctrlKey||d.metaKey)&&a.datepicker._adjustDate(d.target,-7,"D");b=d.ctrlKey||d.metaKey;break;case 39:(d.ctrlKey||d.metaKey)&&
  a.datepicker._adjustDate(d.target,e?-1:1,"D");b=d.ctrlKey||d.metaKey;d.originalEvent.altKey&&a.datepicker._adjustDate(d.target,d.ctrlKey?+a.datepicker._get(c,"stepBigMonths"):+a.datepicker._get(c,"stepMonths"),"M");break;case 40:(d.ctrlKey||d.metaKey)&&a.datepicker._adjustDate(d.target,7,"D");b=d.ctrlKey||d.metaKey;break;default:b=!1}else 36===d.keyCode&&d.ctrlKey?a.datepicker._showDatepicker(this):b=!1;b&&(d.preventDefault(),d.stopPropagation())},_doKeyPress:function(d){var b,c;b=a.datepicker._getInst(d.target);
  if(a.datepicker._get(b,"constrainInput"))return b=a.datepicker._possibleChars(a.datepicker._get(b,"dateFormat")),c=String.fromCharCode(null==d.charCode?d.keyCode:d.charCode),d.ctrlKey||d.metaKey||" ">c||!b||-1<b.indexOf(c)},_doKeyUp:function(d){var b;d=a.datepicker._getInst(d.target);if(d.input.val()!==d.lastVal)try{if(b=a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.datepicker._getFormatConfig(d)))a.datepicker._setDateFromField(d),a.datepicker._updateAlternate(d),
  a.datepicker._updateDatepicker(d)}catch(c){}return!0},_showDatepicker:function(d){d=d.target||d;"input"!==d.nodeName.toLowerCase()&&(d=a("input",d.parentNode)[0]);if(!a.datepicker._isDisabledDatepicker(d)&&a.datepicker._lastInput!==d){var c,e,f,g;c=a.datepicker._getInst(d);a.datepicker._curInst&&a.datepicker._curInst!==c&&(a.datepicker._curInst.dpDiv.stop(!0,!0),c&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0]));e=(e=a.datepicker._get(c,"beforeShow"))?
  e.apply(d,[d,c]):{};if(!1!==e&&(b(c.settings,e),c.lastVal=null,a.datepicker._lastInput=d,a.datepicker._setDateFromField(c),a.datepicker._inDialog&&(d.value=""),a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(d),a.datepicker._pos[1]+=d.offsetHeight),f=!1,a(d).parents().each(function(){f|="fixed"===a(this).css("position");return!f}),e={left:a.datepicker._pos[0],top:a.datepicker._pos[1]},a.datepicker._pos=null,c.dpDiv.empty(),c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),
  a.datepicker._updateDatepicker(c),e=a.datepicker._checkOffset(c,e,f),c.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":f?"fixed":"absolute",display:"none",left:e.left+"px",top:e.top+"px"}),!c.inline)){e=a.datepicker._get(c,"showAnim");g=a.datepicker._get(c,"duration");c.dpDiv.zIndex(a(d).zIndex()+1);a.datepicker._datepickerShowing=!0;if(a.effects&&a.effects.effect[e])c.dpDiv.show(e,a.datepicker._get(c,"showOptions"),g);else c.dpDiv[e||"show"](e?g:null);a.datepicker._shouldFocusInput(c)&&
  c.input.focus();a.datepicker._curInst=c}}},_updateDatepicker:function(d){this.maxRows=4;e=d;d.dpDiv.empty().append(this._generateHTML(d));this._attachHandlers(d);d.dpDiv.find("."+this._dayOverClass+" a").mouseover();var b,c=this._getNumberOfMonths(d),f=c[1];d.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");1<f&&d.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",17*f+"em");d.dpDiv[(1!==c[0]||1!==c[1]?"add":"remove")+"Class"]("ui-datepicker-multi");
  d.dpDiv[(this._get(d,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");d===a.datepicker._curInst&&a.datepicker._datepickerShowing&&a.datepicker._shouldFocusInput(d)&&d.input.focus();d.yearshtml&&(b=d.yearshtml,setTimeout(function(){b===d.yearshtml&&d.yearshtml&&d.dpDiv.find("select.ui-datepicker-year:first").replaceWith(d.yearshtml);b=d.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(d,
  b,c){var e=d.dpDiv.outerWidth(),f=d.dpDiv.outerHeight(),g=d.input?d.input.outerWidth():0,n=d.input?d.input.outerHeight():0,q=document.documentElement.clientWidth+(c?0:a(document).scrollLeft()),r=document.documentElement.clientHeight+(c?0:a(document).scrollTop());b.left-=this._get(d,"isRTL")?e-g:0;b.left-=c&&b.left===d.input.offset().left?a(document).scrollLeft():0;b.top-=c&&b.top===d.input.offset().top+n?a(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>q&&q>e?Math.abs(b.left+e-q):0);b.top-=
  Math.min(b.top,b.top+f>r&&r>f?Math.abs(f+n):0);return b},_findPos:function(d){for(var b=this._getInst(d),b=this._get(b,"isRTL");d&&("hidden"===d.type||1!==d.nodeType||a.expr.filters.hidden(d));)d=d[b?"previousSibling":"nextSibling"];d=a(d).offset();return[d.left,d.top]},_hideDatepicker:function(d){var b,c,e=this._curInst;if(e&&(!d||e===a.data(d,"datepicker"))&&this._datepickerShowing){d=this._get(e,"showAnim");b=this._get(e,"duration");c=function(){a.datepicker._tidyDialog(e)};if(a.effects&&(a.effects.effect[d]||
  a.effects[d]))e.dpDiv.hide(d,a.datepicker._get(e,"showOptions"),b,c);else e.dpDiv["slideDown"===d?"slideUp":"fadeIn"===d?"fadeOut":"hide"](d?b:null,c);d||c();this._datepickerShowing=!1;(d=this._get(e,"onClose"))&&d.apply(e.input?e.input[0]:null,[e.input?e.input.val():"",e]);this._lastInput=null;this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv)));this._inDialog=!1}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
  _checkExternalClick:function(d){if(a.datepicker._curInst){d=a(d.target);var b=a.datepicker._getInst(d[0]);(!(d[0].id===a.datepicker._mainDivId||0!==d.parents("#"+a.datepicker._mainDivId).length||d.hasClass(a.datepicker.markerClassName)||d.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)||d.hasClass(a.datepicker.markerClassName)&&a.datepicker._curInst!==b)&&a.datepicker._hideDatepicker()}},_adjustDate:function(d,b,c){d=a(d);var e=
  this._getInst(d[0]);this._isDisabledDatepicker(d[0])||(this._adjustInstDate(e,b+("M"===c?this._get(e,"showCurrentAtPos"):0),c),this._updateDatepicker(e))},_gotoToday:function(d){var b=a(d),c=this._getInst(b[0]);this._get(c,"gotoCurrent")&&c.currentDay?(c.selectedDay=c.currentDay,c.drawMonth=c.selectedMonth=c.currentMonth,c.drawYear=c.selectedYear=c.currentYear):(d=new Date,c.selectedDay=d.getDate(),c.drawMonth=c.selectedMonth=d.getMonth(),c.drawYear=c.selectedYear=d.getFullYear());this._notifyChange(c);
  this._adjustDate(b)},_selectMonthYear:function(d,b,c){d=a(d);var e=this._getInst(d[0]);e["selected"+("M"===c?"Month":"Year")]=e["draw"+("M"===c?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(d)},_selectDay:function(d,b,c,e){var f;f=a(d);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0])||(f=this._getInst(f[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=b,f.selectedYear=f.currentYear=c,this._selectDate(d,
  this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(d){d=a(d);this._selectDate(d,"")},_selectDate:function(d,b){var c;c=a(d);var e=this._getInst(c[0]);b=null!=b?b:this._formatDate(e);e.input&&e.input.val(b);this._updateAlternate(e);(c=this._get(e,"onSelect"))?c.apply(e.input?e.input[0]:null,[b,e]):e.input&&e.input.trigger("change");e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!==typeof e.input[0]&&e.input.focus(),this._lastInput=
  null)},_updateAlternate:function(d){var b,c,e,f=this._get(d,"altField");f&&(b=this._get(d,"altFormat")||this._get(d,"dateFormat"),c=this._getDate(d),e=this.formatDate(b,c,this._getFormatConfig(d)),a(f).each(function(){a(this).val(e)}))},noWeekends:function(a){a=a.getDay();return[0<a&&6>a,""]},iso8601Week:function(a){var b=new Date(a.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));a=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((a-b)/864E5)/7)+1},parseDate:function(d,b,c){if(null==
  d||null==b)throw"Invalid arguments";b="object"===typeof b?b.toString():b+"";if(""===b)return null;var e,f,g,n=0;f=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;f="string"!==typeof f?f:(new Date).getFullYear()%100+parseInt(f,10);g=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort;var q=(c?c.dayNames:null)||this._defaults.dayNames,r=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,x=(c?c.monthNames:null)||this._defaults.monthNames,u=c=-1,t=-1,C=-1,v=!1,A,y=function(a){(a=
  e+1<d.length&&d.charAt(e+1)===a)&&e++;return a},L=function(a){var d=y(a);a=new RegExp("^\\d{1,"+("@"===a?14:"!"===a?20:"y"===a&&d?4:"o"===a?3:2)+"}");a=b.substring(n).match(a);if(!a)throw"Missing number at position "+n;n+=a[0].length;return parseInt(a[0],10)},J=function(d,c,e){var f=-1;d=a.map(y(d)?e:c,function(a,d){return[[d,a]]}).sort(function(a,d){return-(a[1].length-d[1].length)});a.each(d,function(a,d){var c=d[1];if(b.substr(n,c.length).toLowerCase()===c.toLowerCase())return f=d[0],n+=c.length,
  !1});if(-1!==f)return f+1;throw"Unknown name at position "+n;},D=function(){if(b.charAt(n)!==d.charAt(e))throw"Unexpected literal at position "+n;n++};for(e=0;e<d.length;e++)if(v)"'"!==d.charAt(e)||y("'")?D():v=!1;else switch(d.charAt(e)){case "d":t=L("d");break;case "D":J("D",g,q);break;case "o":C=L("o");break;case "m":u=L("m");break;case "M":u=J("M",r,x);break;case "y":c=L("y");break;case "@":A=new Date(L("@"));c=A.getFullYear();u=A.getMonth()+1;t=A.getDate();break;case "!":A=new Date((L("!")-this._ticksTo1970)/
  1E4);c=A.getFullYear();u=A.getMonth()+1;t=A.getDate();break;case "'":y("'")?D():v=!0;break;default:D()}if(n<b.length&&(g=b.substr(n),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;-1===c?c=(new Date).getFullYear():100>c&&(c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=f?0:-100));if(-1<C){u=1;t=C;do{f=this._getDaysInMonth(c,u-1);if(t<=f)break;u++;t-=f}while(1)}A=this._daylightSavingAdjust(new Date(c,u-1,t));if(A.getFullYear()!==c||A.getMonth()+1!==u||A.getDate()!==
  t)throw"Invalid date";return A},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:864E9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(a,b,c){if(!b)return"";var e,f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,g=(c?c.dayNames:null)||this._defaults.dayNames,n=(c?c.monthNamesShort:null)||
  this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var q=function(b){(b=e+1<a.length&&a.charAt(e+1)===b)&&e++;return b},r=function(a,d,b){d=""+d;if(q(a))for(;d.length<b;)d="0"+d;return d},x=function(a,d,b,c){return q(a)?c[d]:b[d]},u="",t=!1;if(b)for(e=0;e<a.length;e++)if(t)"'"!==a.charAt(e)||q("'")?u+=a.charAt(e):t=!1;else switch(a.charAt(e)){case "d":u+=r("d",b.getDate(),2);break;case "D":u+=x("D",b.getDay(),f,g);break;case "o":u+=r("o",Math.round(((new Date(b.getFullYear(),
  b.getMonth(),b.getDate())).getTime()-(new Date(b.getFullYear(),0,0)).getTime())/864E5),3);break;case "m":u+=r("m",b.getMonth()+1,2);break;case "M":u+=x("M",b.getMonth(),n,c);break;case "y":u+=q("y")?b.getFullYear():(10>b.getYear()%100?"0":"")+b.getYear()%100;break;case "@":u+=b.getTime();break;case "!":u+=1E4*b.getTime()+this._ticksTo1970;break;case "'":q("'")?u+="'":t=!0;break;default:u+=a.charAt(e)}return u},_possibleChars:function(a){var b,c="",e=!1,f=function(c){(c=b+1<a.length&&a.charAt(b+1)===
  c)&&b++;return c};for(b=0;b<a.length;b++)if(e)"'"!==a.charAt(b)||f("'")?c+=a.charAt(b):e=!1;else switch(a.charAt(b)){case "d":case "m":case "y":case "@":c+="0123456789";break;case "D":case "M":return null;case "'":f("'")?c+="'":e=!0;break;default:c+=a.charAt(b)}return c},_get:function(a,b){return a.settings[b]!==g?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!==a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f=this._getDefaultDate(a),
  g=f,n=this._getFormatConfig(a);try{g=this.parseDate(c,e,n)||f}catch(q){e=b?"":e}a.selectedDay=g.getDate();a.drawMonth=a.selectedMonth=g.getMonth();a.drawYear=a.selectedYear=g.getFullYear();a.currentDay=e?g.getDate():0;a.currentMonth=e?g.getMonth():0;a.currentYear=e?g.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(d,b,c){var e=function(a){var d=new Date;d.setDate(d.getDate()+
  a);return d},f=function(b){try{return a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),b,a.datepicker._getFormatConfig(d))}catch(c){}for(var e=(b.toLowerCase().match(/^c/)?a.datepicker._getDate(d):null)||new Date,h=e.getFullYear(),f=e.getMonth(),e=e.getDate(),k=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,g=k.exec(b);g;){switch(g[2]||"d"){case "d":case "D":e+=parseInt(g[1],10);break;case "w":case "W":e+=7*parseInt(g[1],10);break;case "m":case "M":f+=parseInt(g[1],10);e=Math.min(e,a.datepicker._getDaysInMonth(h,
  f));break;case "y":case "Y":h+=parseInt(g[1],10),e=Math.min(e,a.datepicker._getDaysInMonth(h,f))}g=k.exec(b)}return new Date(h,f,e)};if(b=(b=null==b||""===b?c:"string"===typeof b?f(b):"number"===typeof b?isNaN(b)?c:e(b):new Date(b.getTime()))&&"Invalid Date"===b.toString()?c:b)b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0);return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(12<a.getHours()?a.getHours()+2:0);return a},_setDate:function(a,
  b,c){var e=!b,f=a.selectedMonth,g=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();f===a.selectedMonth&&g===a.selectedYear||c||this._notifyChange(a);this._adjustInstDate(a);a.input&&a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,
  a.currentMonth,a.currentDay))},_attachHandlers:function(d){var b=this._get(d,"stepMonths"),c="#"+d.id.replace(/\\\\/g,"\\");d.dpDiv.find("[data-handler]").map(function(){a(this).bind(this.getAttribute("data-event"),{prev:function(){a.datepicker._adjustDate(c,-b,"M")},next:function(){a.datepicker._adjustDate(c,+b,"M")},hide:function(){a.datepicker._hideDatepicker()},today:function(){a.datepicker._gotoToday(c)},selectDay:function(){a.datepicker._selectDay(c,+this.getAttribute("data-month"),+this.getAttribute("data-year"),
  this);return!1},selectMonth:function(){a.datepicker._selectMonthYear(c,this,"M");return!1},selectYear:function(){a.datepicker._selectMonthYear(c,this,"Y");return!1}}[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b,c,e,f,g,n,q,r,x,u,t,C,v,A,y,L,J,D,O,F,M,E,I,P,B,N,G,K=new Date,K=this._daylightSavingAdjust(new Date(K.getFullYear(),K.getMonth(),K.getDate())),z=this._get(a,"isRTL");n=this._get(a,"showButtonPanel");e=this._get(a,"hideIfNoPrevNext");g=this._get(a,"navigationAsDateFormat");
  var H=this._getNumberOfMonths(a),w=this._get(a,"showCurrentAtPos");f=this._get(a,"stepMonths");var ta=1!==H[0]||1!==H[1],ha=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),S=this._getMinMaxDate(a,"min"),V=this._getMinMaxDate(a,"max"),w=a.drawMonth-w,R=a.drawYear;0>w&&(w+=12,R--);if(V)for(b=this._daylightSavingAdjust(new Date(V.getFullYear(),V.getMonth()-H[0]*H[1]+1,V.getDate())),b=S&&b<S?S:b;this._daylightSavingAdjust(new Date(R,w,1))>
  b;)w--,0>w&&(w=11,R--);a.drawMonth=w;a.drawYear=R;b=this._get(a,"prevText");b=g?this.formatDate(b,this._daylightSavingAdjust(new Date(R,w-f,1)),this._getFormatConfig(a)):b;b=this._canAdjustMonth(a,-1,R,w)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+b+"'><span class='ui-icon ui-icon-circle-triangle-"+(z?"e":"w")+"'>"+b+"</span></a>":e?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+b+"'><span class='ui-icon ui-icon-circle-triangle-"+
  (z?"e":"w")+"'>"+b+"</span></a>";c=this._get(a,"nextText");c=g?this.formatDate(c,this._daylightSavingAdjust(new Date(R,w+f,1)),this._getFormatConfig(a)):c;e=this._canAdjustMonth(a,1,R,w)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(z?"w":"e")+"'>"+c+"</span></a>":e?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(z?"w":
  "e")+"'>"+c+"</span></a>";f=this._get(a,"currentText");c=this._get(a,"gotoCurrent")&&a.currentDay?ha:K;f=g?this.formatDate(f,c,this._getFormatConfig(a)):f;g=a.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(a,"closeText")+"</button>";n=n?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(z?g:"")+(this._isInRange(a,c)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+
  f+"</button>":"")+(z?"":g)+"</div>":"";g=parseInt(this._get(a,"firstDay"),10);g=isNaN(g)?0:g;f=this._get(a,"showWeek");c=this._get(a,"dayNames");q=this._get(a,"dayNamesMin");r=this._get(a,"monthNames");x=this._get(a,"monthNamesShort");u=this._get(a,"beforeShowDay");t=this._get(a,"showOtherMonths");C=this._get(a,"selectOtherMonths");v=this._getDefaultDate(a);A="";y;for(L=0;L<H[0];L++){J="";this.maxRows=4;for(D=0;D<H[1];D++){O=this._daylightSavingAdjust(new Date(R,w,a.selectedDay));y=" ui-corner-all";
  F="";if(ta){F+="<div class='ui-datepicker-group";if(1<H[1])switch(D){case 0:F+=" ui-datepicker-group-first";y=" ui-corner-"+(z?"right":"left");break;case H[1]-1:F+=" ui-datepicker-group-last";y=" ui-corner-"+(z?"left":"right");break;default:F+=" ui-datepicker-group-middle",y=""}F+="'>"}F+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+y+"'>"+(/all|left/.test(y)&&0===L?z?e:b:"")+(/all|right/.test(y)&&0===L?z?b:e:"")+this._generateMonthYearHeader(a,w,R,S,V,0<L||0<D,r,x)+"</div><table class='ui-datepicker-calendar'><thead><tr>";
  M=f?"<th class='ui-datepicker-week-col'>"+this._get(a,"weekHeader")+"</th>":"";for(y=0;7>y;y++)E=(y+g)%7,M+="<th"+(5<=(y+g+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+c[E]+"'>"+q[E]+"</span></th>";F+=M+"</tr></thead><tbody>";M=this._getDaysInMonth(R,w);R===a.selectedYear&&w===a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,M));y=(this._getFirstDayOfMonth(R,w)-g+7)%7;M=Math.ceil((y+M)/7);this.maxRows=M=ta?this.maxRows>M?this.maxRows:M:M;E=this._daylightSavingAdjust(new Date(R,
  w,1-y));for(I=0;I<M;I++){F+="<tr>";P=f?"<td class='ui-datepicker-week-col'>"+this._get(a,"calculateWeek")(E)+"</td>":"";for(y=0;7>y;y++)B=u?u.apply(a.input?a.input[0]:null,[E]):[!0,""],G=(N=E.getMonth()!==w)&&!C||!B[0]||S&&E<S||V&&E>V,P+="<td class='"+(5<=(y+g+6)%7?" ui-datepicker-week-end":"")+(N?" ui-datepicker-other-month":"")+(E.getTime()===O.getTime()&&w===a.selectedMonth&&a._keyEvent||v.getTime()===E.getTime()&&v.getTime()===O.getTime()?" "+this._dayOverClass:"")+(G?" "+this._unselectableClass+
  " ui-state-disabled":"")+(N&&!t?"":" "+B[1]+(E.getTime()===ha.getTime()?" "+this._currentClass:"")+(E.getTime()===K.getTime()?" ui-datepicker-today":""))+"'"+(N&&!t||!B[2]?"":" title='"+B[2].replace(/'/g,"&#39;")+"'")+(G?"":" data-handler='selectDay' data-event='click' data-month='"+E.getMonth()+"' data-year='"+E.getFullYear()+"'")+">"+(N&&!t?"&#xa0;":G?"<span class='ui-state-default'>"+E.getDate()+"</span>":"<a class='ui-state-default"+(E.getTime()===K.getTime()?" ui-state-highlight":"")+(E.getTime()===
  ha.getTime()?" ui-state-active":"")+(N?" ui-priority-secondary":"")+"' href='#'>"+E.getDate()+"</a>")+"</td>",E.setDate(E.getDate()+1),E=this._daylightSavingAdjust(E);F+=P+"</tr>"}w++;11<w&&(w=0,R++);F+="</tbody></table>"+(ta?"</div>"+(0<H[0]&&D===H[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"");J+=F}A+=J}a._keyEvent=!1;return A+n},_generateMonthYearHeader:function(a,b,c,e,f,g,n,q){var r,x,u,t=this._get(a,"changeMonth"),C=this._get(a,"changeYear"),v=this._get(a,"showMonthAfterYear"),A=
  "<div class='ui-datepicker-title'>",y="";if(g||!t)y+="<span class='ui-datepicker-month'>"+n[b]+"</span>";else{n=e&&e.getFullYear()===c;r=f&&f.getFullYear()===c;y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";for(x=0;12>x;x++)(!n||x>=e.getMonth())&&(!r||x<=f.getMonth())&&(y+="<option value='"+x+"'"+(x===b?" selected='selected'":"")+">"+q[x]+"</option>");y+="</select>"}v||(A+=y+(!g&&t&&C?"":"&#xa0;"));if(!a.yearshtml)if(a.yearshtml="",g||!C)A+="<span class='ui-datepicker-year'>"+
  c+"</span>";else{q=this._get(a,"yearRange").split(":");u=(new Date).getFullYear();n=function(a){a=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?u+parseInt(a,10):parseInt(a,10);return isNaN(a)?u:a};b=n(q[0]);q=Math.max(b,n(q[1]||""));b=e?Math.max(b,e.getFullYear()):b;q=f?Math.min(q,f.getFullYear()):q;for(a.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";b<=q;b++)a.yearshtml+="<option value='"+b+"'"+(b===c?" selected='selected'":
  "")+">"+b+"</option>";a.yearshtml+="</select>";A+=a.yearshtml;a.yearshtml=null}A+=this._get(a,"yearSuffix");v&&(A+=(!g&&t&&C?"":"&#xa0;")+y);return A+"</div>"},_adjustInstDate:function(a,b,c){var e=a.drawYear+("Y"===c?b:0),f=a.drawMonth+("M"===c?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+("D"===c?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();"M"!==
  c&&"Y"!==c||this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),e=this._getMinMaxDate(a,"max"),c=c&&b<c?c:b;return e&&c>e?e:c},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return null==a?[1,1]:"number"===typeof a?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},
  _getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(0>b?b:f[0]*f[1]),1));0>b&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c,e,f=this._getMinMaxDate(a,"min"),g=this._getMinMaxDate(a,"max"),n=null,q=null;if(c=
  this._get(a,"yearRange"))c=c.split(":"),e=(new Date).getFullYear(),n=parseInt(c[0],10),q=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(n+=e),c[1].match(/[+\-].*/)&&(q+=e);return(!f||b.getTime()>=f.getTime())&&(!g||b.getTime()<=g.getTime())&&(!n||b.getFullYear()>=n)&&(!q||b.getFullYear()<=q)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff"),b="string"!==typeof b?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,
  "dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);b=b?"object"===typeof b?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});a.fn.datepicker=function(d){if(!this.length)return this;
  a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick),a.datepicker.initialized=!0);0===a("#"+a.datepicker._mainDivId).length&&a("body").append(a.datepicker.dpDiv);var b=Array.prototype.slice.call(arguments,1);return"string"===typeof d&&("isDisabled"===d||"getDate"===d||"widget"===d)||"option"===d&&2===arguments.length&&"string"===typeof arguments[1]?a.datepicker["_"+d+"Datepicker"].apply(a.datepicker,[this[0]].concat(b)):this.each(function(){"string"===typeof d?a.datepicker["_"+
  d+"Datepicker"].apply(a.datepicker,[this].concat(b)):a.datepicker._attachDatepicker(this,d)})};a.datepicker=new f;a.datepicker.initialized=!1;a.datepicker.uuid=(new Date).getTime();a.datepicker.version="1.10.3"})(jQuery);
  (function(a,g){var f={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},c={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(b){var c=a(this).css(b).offset().top;
  0>c&&a(this).css("top",b.top-c)}},resizable:!0,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},_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();this.options.draggable&&a.fn.draggable&&this._makeDraggable();this.options.resizable&&a.fn.resizable&&this._makeResizable();this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var b=
  this.options.appendTo;return b&&(b.jquery||b.nodeType)?a(b):this.document.find(b||"body").eq(0)},_destroy:function(){var a,c=this.originalPosition;this._destroyOverlay();this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach();this.uiDialog.stop(!0,!0).remove();this.originalTitle&&this.element.attr("title",this.originalTitle);a=c.parent.children().eq(c.index);a.length&&a[0]!==this.element[0]?a.before(this.element):c.parent.append(this.element)},
  widget:function(){return this.uiDialog},disable:a.noop,enable:a.noop,close:function(b){var c=this;this._isOpen&&!1!==this._trigger("beforeClose",b)&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||a(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){c._trigger("close",b)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(a,c){var d=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;
  d&&!c&&this._trigger("focus",a);return d},open:function(){var b=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=a(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){b._focusTabbable();b._trigger("focus")}),this._trigger("open"))},_focusTabbable:function(){var a=this.element.find("[autofocus]");a.length||(a=this.element.find(":tabbable"));a.length||
  (a=this.uiDialogButtonPane.find(":tabbable"));a.length||(a=this.uiDialogTitlebarClose.filter(":tabbable"));a.length||(a=this.uiDialog);a.eq(0).focus()},_keepFocus:function(b){function c(){var d=this.document[0].activeElement;this.uiDialog[0]===d||a.contains(this.uiDialog[0],d)||this._focusTabbable()}b.preventDefault();c.call(this);this._delay(c)},_createWrapper:function(){this.uiDialog=a("<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(b){if(this.options.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE)b.preventDefault(),this.close(b);else if(b.keyCode===a.ui.keyCode.TAB){var c=this.uiDialog.find(":tabbable"),d=c.filter(":first"),c=c.filter(":last");b.target!==c[0]&&b.target!==this.uiDialog[0]||b.shiftKey?b.target!==d[0]&&b.target!==this.uiDialog[0]||!b.shiftKey||(c.focus(1),b.preventDefault()):(d.focus(1),b.preventDefault())}},
  mousedown:function(a){this._moveToTop(a)&&this._focusTabbable()}});this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var b;this.uiDialogTitlebar=a("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog);this._on(this.uiDialogTitlebar,{mousedown:function(b){a(b.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}});this.uiDialogTitlebarClose=
  a("<button></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar);this._on(this.uiDialogTitlebarClose,{click:function(a){a.preventDefault();this.close(a)}});b=a("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar);this._title(b);this.uiDialog.attr({"aria-labelledby":b.attr("id")})},_title:function(a){this.options.title||a.html("&#160;");a.text(this.options.title)},
  _createButtonPane:function(){this.uiDialogButtonPane=a("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiButtonSet=a("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane);this._createButtons()},_createButtons:function(){var b=this,c=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();a.isEmptyObject(c)||a.isArray(c)&&!c.length?this.uiDialog.removeClass("ui-dialog-buttons"):(a.each(c,function(d,c){var e,f;c=a.isFunction(c)?
  {click:c,text:d}:c;c=a.extend({type:"button"},c);e=c.click;c.click=function(){e.apply(b.element[0],arguments)};f={icons:c.icons,text:c.showText};delete c.icons;delete c.showText;a("<button></button>",c).button(f).appendTo(b.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function b(a){return{position:a.position,offset:a.offset}}var c=this,d=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
  handle:".ui-dialog-titlebar",containment:"document",start:function(d,f){a(this).addClass("ui-dialog-dragging");c._blockFrames();c._trigger("dragStart",d,b(f))},drag:function(a,d){c._trigger("drag",a,b(d))},stop:function(f,k){d.position=[k.position.left-c.document.scrollLeft(),k.position.top-c.document.scrollTop()];a(this).removeClass("ui-dialog-dragging");c._unblockFrames();c._trigger("dragStop",f,b(k))}})},_makeResizable:function(){function b(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,
  position:a.position,size:a.size}}var c=this,d=this.options,f=d.resizable,k=this.uiDialog.css("position"),f="string"===typeof f?f:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:d.maxWidth,maxHeight:d.maxHeight,minWidth:d.minWidth,minHeight:this._minHeight(),handles:f,start:function(d,f){a(this).addClass("ui-dialog-resizing");c._blockFrames();c._trigger("resizeStart",d,b(f))},resize:function(a,d){c._trigger("resize",
  a,b(d))},stop:function(f,h){d.height=a(this).height();d.width=a(this).width();a(this).removeClass("ui-dialog-resizing");c._unblockFrames();c._trigger("resizeStop",f,b(h))}}).css("position",k)},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(){var a=this.uiDialog.is(":visible");a||this.uiDialog.show();this.uiDialog.position(this.options.position);a||this.uiDialog.hide()},_setOptions:function(b){var e=this,d=!1,h={};a.each(b,
  function(a,b){e._setOption(a,b);a in f&&(d=!0);a in c&&(h[a]=b)});d&&(this._size(),this._position());this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",h)},_setOption:function(a,c){var d,f=this.uiDialog;"dialogClass"===a&&f.removeClass(this.options.dialogClass).addClass(c);"disabled"!==a&&(this._super(a,c),"appendTo"===a&&this.uiDialog.appendTo(this._appendTo()),"buttons"===a&&this._createButtons(),"closeText"===a&&this.uiDialogTitlebarClose.button({label:""+c}),"draggable"===
  a&&((d=f.is(":data(ui-draggable)"))&&!c&&f.draggable("destroy"),!d&&c&&this._makeDraggable()),"position"===a&&this._position(),"resizable"===a&&((d=f.is(":data(ui-resizable)"))&&!c&&f.resizable("destroy"),d&&"string"===typeof c&&f.resizable("option","handles",c),d||!1===c||this._makeResizable()),"title"===a&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var a,c,d,f=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});f.minWidth>
  f.width&&(f.width=f.minWidth);a=this.uiDialog.css({height:"auto",width:f.width}).outerHeight();c=Math.max(0,f.minHeight-a);d="number"===typeof f.maxHeight?Math.max(0,f.maxHeight-a):"none";"auto"===f.height?this.element.css({minHeight:c,maxHeight:d,height:"auto"}):this.element.height(Math.max(0,f.height-a));this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var b=
  a(this);return a("<div>").css({position:"absolute",width:b.outerWidth(),height:b.outerHeight()}).appendTo(b.parent()).offset(b.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(b){return a(b.target).closest(".ui-dialog").length?!0:!!a(b.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var b=this,c=this.widgetFullName;a.ui.dialog.overlayInstances||this._delay(function(){a.ui.dialog.overlayInstances&&
  this.document.bind("focusin.dialog",function(d){b._allowInteraction(d)||(d.preventDefault(),a(".ui-dialog:visible:last .ui-dialog-content").data(c)._focusTabbable())})});this.overlay=a("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo());this._on(this.overlay,{mousedown:"_keepFocus"});a.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(a.ui.dialog.overlayInstances--,a.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),
  this.overlay.remove(),this.overlay=null)}});a.ui.dialog.overlayInstances=0;!1!==a.uiBackCompat&&a.widget("ui.dialog",a.ui.dialog,{_position:function(){var b=this.options.position,c=[],d=[0,0],f;if(b){if("string"===typeof b||"object"===typeof b&&"0"in b)c=b.split?b.split(" "):[b[0],b[1]],1===c.length&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c[0]+(0>d[0]?d[0]:"+"+d[0])+" "+c[1]+(0>d[1]?d[1]:"+"+d[1]),at:c.join(" ")};b=a.extend({},a.ui.dialog.prototype.options.position,
  b)}else b=a.ui.dialog.prototype.options.position;(f=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.position(b);f||this.uiDialog.hide()}})})(jQuery);
  (function(a,g){var f=/up|down|vertical/,c=/up|left|vertical|horizontal/;a.effects.effect.blind=function(b,e){var d=a(this),h="position top bottom left right height width".split(" "),k=a.effects.setMode(d,b.mode||"hide"),g=b.direction||"up",l=f.test(g),p=l?"height":"width",n=l?"top":"left",g=c.test(g),q={},r="show"===k,x,u,t;d.parent().is(".ui-effects-wrapper")?a.effects.save(d.parent(),h):a.effects.save(d,h);d.show();x=a.effects.createWrapper(d).css({overflow:"hidden"});u=x[p]();t=parseFloat(x.css(n))||
  0;q[p]=r?u:0;g||(d.css(l?"bottom":"right",0).css(l?"top":"left","auto").css({position:"absolute"}),q[n]=r?t:u+t);r&&(x.css(p,0),g||x.css(n,t+u));x.animate(q,{duration:b.duration,easing:b.easing,queue:!1,complete:function(){"hide"===k&&d.hide();a.effects.restore(d,h);a.effects.removeWrapper(d);e()}})}})(jQuery);
  (function(a,g){a.effects.effect.bounce=function(f,c){var b=a(this),e="position top bottom left right height width".split(" "),d=a.effects.setMode(b,f.mode||"effect"),h="hide"===d,k="show"===d,g=f.direction||"up",d=f.distance,l=f.times||5,p=2*l+(k||h?1:0),n=f.duration/p,q=f.easing,r="up"===g||"down"===g?"top":"left",g="up"===g||"left"===g,x,u,t=b.queue(),C=t.length;(k||h)&&e.push("opacity");a.effects.save(b,e);b.show();a.effects.createWrapper(b);d||(d=b["top"===r?"outerHeight":"outerWidth"]()/3);k&&
  (u={opacity:1},u[r]=0,b.css("opacity",0).css(r,g?2*-d:2*d).animate(u,n,q));h&&(d/=Math.pow(2,l-1));u={};for(k=u[r]=0;k<l;k++)x={},x[r]=(g?"-=":"+=")+d,b.animate(x,n,q).animate(u,n,q),d=h?2*d:d/2;h&&(x={opacity:0},x[r]=(g?"-=":"+=")+d,b.animate(x,n,q));b.queue(function(){h&&b.hide();a.effects.restore(b,e);a.effects.removeWrapper(b);c()});1<C&&t.splice.apply(t,[1,0].concat(t.splice(C,p+1)));b.dequeue()}})(jQuery);
  (function(a,g){a.effects.effect.clip=function(f,c){var b=a(this),e="position top bottom left right height width".split(" "),d="show"===a.effects.setMode(b,f.mode||"hide"),h="vertical"===(f.direction||"vertical"),k=h?"height":"width",h=h?"top":"left",g={},l,p;a.effects.save(b,e);b.show();l=a.effects.createWrapper(b).css({overflow:"hidden"});l="IMG"===b[0].tagName?l:b;p=l[k]();d&&(l.css(k,0),l.css(h,p/2));g[k]=d?p:0;g[h]=d?0:p/2;l.animate(g,{queue:!1,duration:f.duration,easing:f.easing,complete:function(){d||
  b.hide();a.effects.restore(b,e);a.effects.removeWrapper(b);c()}})}})(jQuery);
  (function(a,g){a.effects.effect.drop=function(f,c){var b=a(this),e="position top bottom left right opacity height width".split(" "),d=a.effects.setMode(b,f.mode||"hide"),h="show"===d,k=f.direction||"left",g="up"===k||"down"===k?"top":"left",k="up"===k||"left"===k?"pos":"neg",l={opacity:h?1:0},p;a.effects.save(b,e);b.show();a.effects.createWrapper(b);p=f.distance||b["top"===g?"outerHeight":"outerWidth"](!0)/2;h&&b.css("opacity",0).css(g,"pos"===k?-p:p);l[g]=(h?"pos"===k?"+=":"-=":"pos"===k?"-=":"+=")+
  p;b.animate(l,{queue:!1,duration:f.duration,easing:f.easing,complete:function(){"hide"===d&&b.hide();a.effects.restore(b,e);a.effects.removeWrapper(b);c()}})}})(jQuery);
  (function(a,g){a.effects.effect.explode=function(f,c){function b(){n.push(this);n.length===e*d&&(h.css({visibility:"visible"}),a(n).remove(),k||h.hide(),c())}var e=f.pieces?Math.round(Math.sqrt(f.pieces)):3,d=e,h=a(this),k="show"===a.effects.setMode(h,f.mode||"hide"),g=h.show().css("visibility","hidden").offset(),l=Math.ceil(h.outerWidth()/d),p=Math.ceil(h.outerHeight()/e),n=[],q,r,x,u,t,C;for(q=0;q<e;q++)for(u=g.top+q*p,C=q-(e-1)/2,r=0;r<d;r++)x=g.left+r*l,t=r-(d-1)/2,h.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",
  visibility:"visible",left:-r*l,top:-q*p}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:l,height:p,left:x+(k?t*l:0),top:u+(k?C*p:0),opacity:k?0:1}).animate({left:x+(k?0:t*l),top:u+(k?0:C*p),opacity:k?1:0},f.duration||500,f.easing,b)}})(jQuery);(function(a,g){a.effects.effect.fade=function(f,c){var b=a(this),e=a.effects.setMode(b,f.mode||"toggle");b.animate({opacity:e},{queue:!1,duration:f.duration,easing:f.easing,complete:c})}})(jQuery);
  (function(a,g){a.effects.effect.fold=function(f,c){var b=a(this),e="position top bottom left right height width".split(" "),d=a.effects.setMode(b,f.mode||"hide"),h="show"===d,k="hide"===d,d=f.size||15,g=/([0-9]+)%/.exec(d),l=!!f.horizFirst,p=h!==l,n=p?["width","height"]:["height","width"],q=f.duration/2,r,x={},u={};a.effects.save(b,e);b.show();r=a.effects.createWrapper(b).css({overflow:"hidden"});p=p?[r.width(),r.height()]:[r.height(),r.width()];g&&(d=parseInt(g[1],10)/100*p[k?0:1]);h&&r.css(l?{height:0,
  width:d}:{height:d,width:0});x[n[0]]=h?p[0]:d;u[n[1]]=h?p[1]:0;r.animate(x,q,f.easing).animate(u,q,f.easing,function(){k&&b.hide();a.effects.restore(b,e);a.effects.removeWrapper(b);c()})}})(jQuery);
  (function(a,g){a.effects.effect.highlight=function(f,c){var b=a(this),e=["backgroundImage","backgroundColor","opacity"],d=a.effects.setMode(b,f.mode||"show"),h={backgroundColor:b.css("backgroundColor")};"hide"===d&&(h.opacity=0);a.effects.save(b,e);b.show().css({backgroundImage:"none",backgroundColor:f.color||"#ffff99"}).animate(h,{queue:!1,duration:f.duration,easing:f.easing,complete:function(){"hide"===d&&b.hide();a.effects.restore(b,e);c()}})}})(jQuery);
  (function(a,g){a.effects.effect.pulsate=function(f,c){var b=a(this),e=a.effects.setMode(b,f.mode||"show"),d="show"===e,h="hide"===e,e=2*(f.times||5)+(d||"hide"===e?1:0),k=f.duration/e,g=0,l=b.queue(),p=l.length;if(d||!b.is(":visible"))b.css("opacity",0).show(),g=1;for(d=1;d<e;d++)b.animate({opacity:g},k,f.easing),g=1-g;b.animate({opacity:g},k,f.easing);b.queue(function(){h&&b.hide();c()});1<p&&l.splice.apply(l,[1,0].concat(l.splice(p,e+1)));b.dequeue()}})(jQuery);
  (function(a,g){a.effects.effect.puff=function(f,c){var b=a(this),e=a.effects.setMode(b,f.mode||"hide"),d="hide"===e,h=parseInt(f.percent,10)||150,k=h/100,g={height:b.height(),width:b.width(),outerHeight:b.outerHeight(),outerWidth:b.outerWidth()};a.extend(f,{effect:"scale",queue:!1,fade:!0,mode:e,complete:c,percent:d?h:100,from:d?g:{height:g.height*k,width:g.width*k,outerHeight:g.outerHeight*k,outerWidth:g.outerWidth*k}});b.effect(f)};a.effects.effect.scale=function(f,c){var b=a(this),e=a.extend(!0,
  {},f),d=a.effects.setMode(b,f.mode||"effect"),h=parseInt(f.percent,10)||(0===parseInt(f.percent,10)?0:"hide"===d?0:100),k=f.direction||"both",g=f.origin,l={height:b.height(),width:b.width(),outerHeight:b.outerHeight(),outerWidth:b.outerWidth()},p="horizontal"!==k?h/100:1,h="vertical"!==k?h/100:1;e.effect="size";e.queue=!1;e.complete=c;"effect"!==d&&(e.origin=g||["middle","center"],e.restore=!0);e.from=f.from||("show"===d?{height:0,width:0,outerHeight:0,outerWidth:0}:l);e.to={height:l.height*p,width:l.width*
  h,outerHeight:l.outerHeight*p,outerWidth:l.outerWidth*h};e.fade&&("show"===d&&(e.from.opacity=0,e.to.opacity=1),"hide"===d&&(e.from.opacity=1,e.to.opacity=0));b.effect(e)};a.effects.effect.size=function(f,c){var b,e,d,h,k,g,l=a(this),p="position top bottom left right width height overflow opacity".split(" ");k="position top bottom left right overflow opacity".split(" ");var n=["width","height","overflow"],q=["fontSize"],r=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],x=["borderLeftWidth",
  "borderRightWidth","paddingLeft","paddingRight"],u=a.effects.setMode(l,f.mode||"effect"),t=f.restore||"effect"!==u,C=f.scale||"both";g=f.origin||["middle","center"];var v=l.css("position"),A=t?p:k,y={height:0,width:0,outerHeight:0,outerWidth:0};"show"===u&&l.show();k={height:l.height(),width:l.width(),outerHeight:l.outerHeight(),outerWidth:l.outerWidth()};"toggle"===f.mode&&"show"===u?(l.from=f.to||y,l.to=f.from||k):(l.from=f.from||("show"===u?y:k),l.to=f.to||("hide"===u?y:k));d=l.from.height/k.height;
  h=l.from.width/k.width;b=l.to.height/k.height;e=l.to.width/k.width;if("box"===C||"both"===C)d!==b&&(A=A.concat(r),l.from=a.effects.setTransition(l,r,d,l.from),l.to=a.effects.setTransition(l,r,b,l.to)),h!==e&&(A=A.concat(x),l.from=a.effects.setTransition(l,x,h,l.from),l.to=a.effects.setTransition(l,x,e,l.to));"content"!==C&&"both"!==C||d===b||(A=A.concat(q).concat(n),l.from=a.effects.setTransition(l,q,d,l.from),l.to=a.effects.setTransition(l,q,b,l.to));a.effects.save(l,A);l.show();a.effects.createWrapper(l);
  l.css("overflow","hidden").css(l.from);g&&(g=a.effects.getBaseline(g,k),l.from.top=(k.outerHeight-l.outerHeight())*g.y,l.from.left=(k.outerWidth-l.outerWidth())*g.x,l.to.top=(k.outerHeight-l.to.outerHeight)*g.y,l.to.left=(k.outerWidth-l.to.outerWidth)*g.x);l.css(l.from);if("content"===C||"both"===C)r=r.concat(["marginTop","marginBottom"]).concat(q),x=x.concat(["marginLeft","marginRight"]),n=p.concat(r).concat(x),l.find("*[width]").each(function(){var c=a(this),k=c.height(),g=c.width(),m=c.outerHeight(),
  l=c.outerWidth();t&&a.effects.save(c,n);c.from={height:k*d,width:g*h,outerHeight:m*d,outerWidth:l*h};c.to={height:k*b,width:g*e,outerHeight:k*b,outerWidth:g*e};d!==b&&(c.from=a.effects.setTransition(c,r,d,c.from),c.to=a.effects.setTransition(c,r,b,c.to));h!==e&&(c.from=a.effects.setTransition(c,x,h,c.from),c.to=a.effects.setTransition(c,x,e,c.to));c.css(c.from);c.animate(c.to,f.duration,f.easing,function(){t&&a.effects.restore(c,n)})});l.animate(l.to,{queue:!1,duration:f.duration,easing:f.easing,
  complete:function(){0===l.to.opacity&&l.css("opacity",l.from.opacity);"hide"===u&&l.hide();a.effects.restore(l,A);t||("static"===v?l.css({position:"relative",top:l.to.top,left:l.to.left}):a.each(["top","left"],function(a,d){l.css(d,function(d,b){var c=parseInt(b,10),e=a?l.to.left:l.to.top;return"auto"===b?e+"px":c+e+"px"})}));a.effects.removeWrapper(l);c()}})}})(jQuery);
  (function(a,g){a.effects.effect.shake=function(f,c){var b=a(this),e="position top bottom left right height width".split(" "),d=a.effects.setMode(b,f.mode||"effect"),h=f.direction||"left",k=f.distance||20,g=f.times||3,l=2*g+1,p=Math.round(f.duration/l),n="up"===h||"down"===h?"top":"left",q="up"===h||"left"===h,h={},r={},x={},u=b.queue(),t=u.length;a.effects.save(b,e);b.show();a.effects.createWrapper(b);h[n]=(q?"-=":"+=")+k;r[n]=(q?"+=":"-=")+2*k;x[n]=(q?"-=":"+=")+2*k;b.animate(h,p,f.easing);for(k=
  1;k<g;k++)b.animate(r,p,f.easing).animate(x,p,f.easing);b.animate(r,p,f.easing).animate(h,p/2,f.easing).queue(function(){"hide"===d&&b.hide();a.effects.restore(b,e);a.effects.removeWrapper(b);c()});1<t&&u.splice.apply(u,[1,0].concat(u.splice(t,l+1)));b.dequeue()}})(jQuery);
  (function(a,g){a.effects.effect.slide=function(f,c){var b=a(this),e="position top bottom left right width height".split(" "),d=a.effects.setMode(b,f.mode||"show"),h="show"===d,k=f.direction||"left",g="up"===k||"down"===k?"top":"left",k="up"===k||"left"===k,l,p={};a.effects.save(b,e);b.show();l=f.distance||b["top"===g?"outerHeight":"outerWidth"](!0);a.effects.createWrapper(b).css({overflow:"hidden"});h&&b.css(g,k?isNaN(l)?"-"+l:-l:l);p[g]=(h?k?"+=":"-=":k?"-=":"+=")+l;b.animate(p,{queue:!1,duration:f.duration,
  easing:f.easing,complete:function(){"hide"===d&&b.hide();a.effects.restore(b,e);a.effects.removeWrapper(b);c()}})}})(jQuery);
  (function(a,g){a.effects.effect.transfer=function(f,c){var b=a(this),e=a(f.to),d="fixed"===e.css("position"),h=a("body"),k=d?h.scrollTop():0,h=d?h.scrollLeft():0,g=e.offset(),e={top:g.top-k,left:g.left-h,height:e.innerHeight(),width:e.innerWidth()},g=b.offset(),l=a("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(f.className).css({top:g.top-k,left:g.left-h,height:b.innerHeight(),width:b.innerWidth(),position:d?"fixed":"absolute"}).animate(e,f.duration,f.easing,function(){l.remove();
  c()})}})(jQuery);
  (function(a,g){a.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=!1;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,
  a.proxy(function(a){this.options.disabled&&a.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(f){var c=a(f.target).closest(".ui-menu-item");!this.mouseHandled&&c.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(f),c.has(".ui-menu").length?
  this.expand(f):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(f){var c=a(f.currentTarget);c.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(f,c)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,c){var b=this.active||this.element.children(".ui-menu-item").eq(0);c||this.focus(a,b)},blur:function(f){this._delay(function(){a.contains(this.element[0],
  this.document[0].activeElement)||this.collapseAll(f)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(f){a(f.target).closest(".ui-menu").length||this.collapseAll(f);this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
  this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var f=a(this);f.data("ui-menu-submenu-carat")&&f.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(f){function c(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
  "\\$&")}var b,e,d,h,k=!0;switch(f.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(f);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(f);break;case a.ui.keyCode.HOME:this._move("first","first",f);break;case a.ui.keyCode.END:this._move("last","last",f);break;case a.ui.keyCode.UP:this.previous(f);break;case a.ui.keyCode.DOWN:this.next(f);break;case a.ui.keyCode.LEFT:this.collapse(f);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(f);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(f);
  break;case a.ui.keyCode.ESCAPE:this.collapse(f);break;default:k=!1,b=this.previousFilter||"",e=String.fromCharCode(f.keyCode),d=!1,clearTimeout(this.filterTimer),e===b?d=!0:e=b+e,h=new RegExp("^"+c(e),"i"),b=this.activeMenu.children(".ui-menu-item").filter(function(){return h.test(a(this).children("a").text())}),b=d&&-1!==b.index(this.active.next())?this.active.nextAll(".ui-menu-item"):b,b.length||(e=String.fromCharCode(f.keyCode),h=new RegExp("^"+c(e),"i"),b=this.activeMenu.children(".ui-menu-item").filter(function(){return h.test(a(this).children("a").text())})),
  b.length?(this.focus(f,b),1<b.length?(this.previousFilter=e,this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)):delete this.previousFilter):delete this.previousFilter}k&&f.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var f,c=this.options.icons.submenu;f=this.element.find(this.options.menus);f.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,
  "aria-hidden":"true","aria-expanded":"false"}).each(function(){var b=a(this),e=b.prev("a"),d=a("<span>").addClass("ui-menu-icon ui-icon "+c).data("ui-menu-submenu-carat",!0);e.attr("aria-haspopup","true").prepend(d);b.attr("aria-labelledby",e.attr("id"))});f=f.add(this.element);f.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});f.children(":not(.ui-menu-item)").each(function(){var b=
  a(this);/[^\-\u2014\u2013\s]/.test(b.text())||b.addClass("ui-widget-content ui-menu-divider")});f.children(".ui-state-disabled").attr("aria-disabled","true");this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(a,c){"icons"===a&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(c.submenu);this._super(a,c)},focus:function(a,c){var b;this.blur(a,a&&
  "focus"===a.type);this._scrollIntoView(c);this.active=c.first();b=this.active.children("a").addClass("ui-state-focus");this.options.role&&this.element.attr("aria-activedescendant",b.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay);b=c.children(".ui-menu");b.length&&/^mouse/.test(a.type)&&this._startOpening(b);this.activeMenu=c.parent();this._trigger("focus",
  a,{item:c})},_scrollIntoView:function(f){var c,b,e;this._hasScroll()&&(c=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,b=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,c=f.offset().top-this.activeMenu.offset().top-c-b,b=this.activeMenu.scrollTop(),e=this.activeMenu.height(),f=f.height(),0>c?this.activeMenu.scrollTop(b+c):c+f>e&&this.activeMenu.scrollTop(b+c-e+f))},blur:function(a,c){c||clearTimeout(this.timer);this.active&&(this.active.children("a").removeClass("ui-state-focus"),
  this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer);"true"===a.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close();this._open(a)},this.delay))},_open:function(f){var c=a.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(f.parents(".ui-menu")).hide().attr("aria-hidden","true");f.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(f,
  c){clearTimeout(this.timer);this.timer=this._delay(function(){var b=c?this.element:a(f&&f.target).closest(this.element.find(".ui-menu"));b.length||(b=this.element);this._close(b);this.blur(f);this.activeMenu=b},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element);a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var c=this.active&&this.active.parent().closest(".ui-menu-item",
  this.element);c&&c.length&&(this._close(),this.focus(a,c))},expand:function(a){var c=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();c&&c.length&&(this._open(c.parent()),this._delay(function(){this.focus(a,c)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},
  _move:function(a,c,b){var e;this.active&&(e="first"===a||"last"===a?this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[a+"All"](".ui-menu-item").eq(0));e&&e.length&&this.active||(e=this.activeMenu.children(".ui-menu-item")[c]());this.focus(b,e)},nextPage:function(f){var c,b,e;this.active?this.isLastItem()||(this._hasScroll()?(b=this.active.offset().top,e=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){c=a(this);return 0>c.offset().top-b-e}),
  this.focus(f,c)):this.focus(f,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())):this.next(f)},previousPage:function(f){var c,b,e;this.active?this.isFirstItem()||(this._hasScroll()?(b=this.active.offset().top,e=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){c=a(this);return 0<c.offset().top-b+e}),this.focus(f,c)):this.focus(f,this.activeMenu.children(".ui-menu-item").first())):this.next(f)},_hasScroll:function(){return this.element.outerHeight()<
  this.element.prop("scrollHeight")},select:function(f){this.active=this.active||a(f.target).closest(".ui-menu-item");var c={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(f,!0);this._trigger("select",f,c)}})})(jQuery);
  (function(a,g){function f(a,d,b){return[parseFloat(a[0])*(n.test(a[0])?d/100:1),parseFloat(a[1])*(n.test(a[1])?b/100:1)]}function c(d){var b=d[0];return 9===b.nodeType?{width:d.width(),height:d.height(),offset:{top:0,left:0}}:a.isWindow(b)?{width:d.width(),height:d.height(),offset:{top:d.scrollTop(),left:d.scrollLeft()}}:b.preventDefault?{width:0,height:0,offset:{top:b.pageY,left:b.pageX}}:{width:d.outerWidth(),height:d.outerHeight(),offset:d.offset()}}a.ui=a.ui||{};var b,e=Math.max,d=Math.abs,h=
  Math.round,k=/left|center|right/,m=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,p=/^\w+/,n=/%$/,q=a.fn.position;a.position={scrollbarWidth:function(){if(b!==g)return b;var d,c,e=a("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>");c=e.children()[0];a("body").append(e);d=c.offsetWidth;e.css("overflow","scroll");c=c.offsetWidth;d===c&&(c=e[0].clientWidth);e.remove();return b=d-c},getScrollInfo:function(d){var b=d.isWindow?"":d.element.css("overflow-x"),
  c=d.isWindow?"":d.element.css("overflow-y"),b="scroll"===b||"auto"===b&&d.width<d.element[0].scrollWidth;return{width:"scroll"===c||"auto"===c&&d.height<d.element[0].scrollHeight?a.position.scrollbarWidth():0,height:b?a.position.scrollbarWidth():0}},getWithinInfo:function(d){d=a(d||window);var b=a.isWindow(d[0]);return{element:d,isWindow:b,offset:d.offset()||{left:0,top:0},scrollLeft:d.scrollLeft(),scrollTop:d.scrollTop(),width:b?d.width():d.outerWidth(),height:b?d.height():d.outerHeight()}}};a.fn.position=
  function(b){if(!b||!b.of)return q.apply(this,arguments);b=a.extend({},b);var g,n,t,C,v,A,y=a(b.of),L=a.position.getWithinInfo(b.within),J=a.position.getScrollInfo(L),D=(b.collision||"flip").split(" "),O={};A=c(y);y[0].preventDefault&&(b.at="left top");n=A.width;t=A.height;C=A.offset;v=a.extend({},C);a.each(["my","at"],function(){var a=(b[this]||"").split(" "),d,c;1===a.length&&(a=k.test(a[0])?a.concat(["center"]):m.test(a[0])?["center"].concat(a):["center","center"]);a[0]=k.test(a[0])?a[0]:"center";
  a[1]=m.test(a[1])?a[1]:"center";d=l.exec(a[0]);c=l.exec(a[1]);O[this]=[d?d[0]:0,c?c[0]:0];b[this]=[p.exec(a[0])[0],p.exec(a[1])[0]]});1===D.length&&(D[1]=D[0]);"right"===b.at[0]?v.left+=n:"center"===b.at[0]&&(v.left+=n/2);"bottom"===b.at[1]?v.top+=t:"center"===b.at[1]&&(v.top+=t/2);g=f(O.at,n,t);v.left+=g[0];v.top+=g[1];return this.each(function(){var c,k,m=a(this),l=m.outerWidth(),p=m.outerHeight(),q=parseInt(a.css(this,"marginLeft"),10)||0,A=parseInt(a.css(this,"marginTop"),10)||0,G=l+q+(parseInt(a.css(this,
  "marginRight"),10)||0)+J.width,K=p+A+(parseInt(a.css(this,"marginBottom"),10)||0)+J.height,z=a.extend({},v),H=f(O.my,m.outerWidth(),m.outerHeight());"right"===b.my[0]?z.left-=l:"center"===b.my[0]&&(z.left-=l/2);"bottom"===b.my[1]?z.top-=p:"center"===b.my[1]&&(z.top-=p/2);z.left+=H[0];z.top+=H[1];a.support.offsetFractions||(z.left=h(z.left),z.top=h(z.top));c={marginLeft:q,marginTop:A};a.each(["left","top"],function(d,e){if(a.ui.position[D[d]])a.ui.position[D[d]][e](z,{targetWidth:n,targetHeight:t,
  elemWidth:l,elemHeight:p,collisionPosition:c,collisionWidth:G,collisionHeight:K,offset:[g[0]+H[0],g[1]+H[1]],my:b.my,at:b.at,within:L,elem:m})});b.using&&(k=function(a){var c=C.left-z.left,f=c+n-l,h=C.top-z.top,k=h+t-p,g={target:{element:y,left:C.left,top:C.top,width:n,height:t},element:{element:m,left:z.left,top:z.top,width:l,height:p},horizontal:0>f?"left":0<c?"right":"center",vertical:0>k?"top":0<h?"bottom":"middle"};n<l&&d(c+f)<n&&(g.horizontal="center");t<p&&d(h+k)<t&&(g.vertical="middle");e(d(c),
  d(f))>e(d(h),d(k))?g.important="horizontal":g.important="vertical";b.using.call(this,a,g)});m.offset(a.extend(z,{using:k}))})};a.ui.position={fit:{left:function(a,d){var b=d.within,c=b.isWindow?b.scrollLeft:b.offset.left,f=b.width,h=a.left-d.collisionPosition.marginLeft,b=c-h,k=h+d.collisionWidth-f-c;d.collisionWidth>f?0<b&&0>=k?(c=a.left+b+d.collisionWidth-f-c,a.left+=b-c):a.left=0<k&&0>=b?c:b>k?c+f-d.collisionWidth:c:a.left=0<b?a.left+b:0<k?a.left-k:e(a.left-h,a.left)},top:function(a,d){var b=d.within,
  c=b.isWindow?b.scrollTop:b.offset.top,f=d.within.height,h=a.top-d.collisionPosition.marginTop,b=c-h,k=h+d.collisionHeight-f-c;d.collisionHeight>f?0<b&&0>=k?(c=a.top+b+d.collisionHeight-f-c,a.top+=b-c):a.top=0<k&&0>=b?c:b>k?c+f-d.collisionHeight:c:a.top=0<b?a.top+b:0<k?a.top-k:e(a.top-h,a.top)}},flip:{left:function(a,b){var c=b.within,e=c.offset.left+c.scrollLeft,f=c.width,h=c.isWindow?c.scrollLeft:c.offset.left,k=a.left-b.collisionPosition.marginLeft,c=k-h,g=k+b.collisionWidth-f-h,k="left"===b.my[0]?
  -b.elemWidth:"right"===b.my[0]?b.elemWidth:0,m="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,l=-2*b.offset[0];if(0>c){if(e=a.left+k+m+l+b.collisionWidth-f-e,0>e||e<d(c))a.left+=k+m+l}else 0<g&&(e=a.left-b.collisionPosition.marginLeft+k+m+l-h,0<e||d(e)<g)&&(a.left+=k+m+l)},top:function(a,b){var c=b.within,e=c.offset.top+c.scrollTop,f=c.height,h=c.isWindow?c.scrollTop:c.offset.top,k=a.top-b.collisionPosition.marginTop,c=k-h,g=k+b.collisionHeight-f-h,k="top"===b.my[1]?-b.elemHeight:
  "bottom"===b.my[1]?b.elemHeight:0,m="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,l=-2*b.offset[1];0>c?(e=a.top+k+m+l+b.collisionHeight-f-e,a.top+k+m+l>c&&(0>e||e<d(c))&&(a.top+=k+m+l)):0<g&&(e=a.top-b.collisionPosition.marginTop+k+m+l-h,a.top+k+m+l>g&&(0<e||d(e)<g)&&(a.top+=k+m+l))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments);a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments);a.ui.position.fit.top.apply(this,
  arguments)}}};(function(){var d,b,c,e,f=document.getElementsByTagName("body")[0];c=document.createElement("div");d=document.createElement(f?"div":"body");b={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};f&&a.extend(b,{position:"absolute",left:"-1000px",top:"-1000px"});for(e in b)d.style[e]=b[e];d.appendChild(c);b=f||document.documentElement;b.insertBefore(d,b.firstChild);c.style.cssText="position: absolute; left: 10.7432222px;";c=a(c).offset().left;a.support.offsetFractions=
  10<c&&11>c;d.innerHTML="";b.removeChild(d)})()})(jQuery);
  (function(a,g){a.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
  this.valueDiv.remove()},value:function(a){if(a===g)return this.options.value;this.options.value=this._constrainedValue(a);this._refreshValue()},_constrainedValue:function(a){a===g&&(a=this.options.value);this.indeterminate=!1===a;"number"!==typeof a&&(a=0);return this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,a))},_setOptions:function(a){var c=a.value;delete a.value;this._super(a);this.options.value=this._constrainedValue(c);this._refreshValue()},_setOption:function(a,c){"max"===
  a&&(c=Math.max(this.min,c));this._super(a,c)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var f=this.options.value,c=this._percentage();this.valueDiv.toggle(this.indeterminate||f>this.min).toggleClass("ui-corner-right",f===this.options.max).width(c.toFixed(0)+"%");this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate);this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||
  (this.overlayDiv=a("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":f}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null));this.oldValue!==f&&(this.oldValue=f,this._trigger("change"));f===this.options.max&&this._trigger("complete")}})})(jQuery);
  (function(a,g){a.widget("ui.slider",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._mouseSliding=this._keySliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();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=!1},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var f,c;f=this.options;var b=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),e=[];c=f.values&&f.values.length||1;b.length>c&&(b.slice(c).remove(),b=b.slice(0,c));for(f=b.length;f<c;f++)e.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");
  this.handles=b.add(a(e.join("")).appendTo(this.element));this.handle=this.handles.eq(0);this.handles.each(function(d){a(this).data("ui-slider-handle-index",d)})},_createRange:function(){var f=this.options,c="";f.range?(!0===f.range&&(f.values?f.values.length&&2!==f.values.length?f.values=[f.values[0],f.values[0]]:a.isArray(f.values)&&(f.values=f.values.slice(0)):f.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",
  bottom:""}):(this.range=a("<div></div>").appendTo(this.element),c="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(c+("min"===f.range||"max"===f.range?" ui-slider-range-"+f.range:""))):this.range=a([])},_setupEvents:function(){var a=this.handles.add(this.range).filter("a");this._off(a);this._on(a,this._handleEvents);this._hoverable(a);this._focusable(a)},_destroy:function(){this.handles.remove();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(f){var c,b,e,d,h,k=this,g=this.options;if(g.disabled)return!1;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:f.pageX,y:f.pageY});b=this._valueMax()-this._valueMin()+1;this.handles.each(function(f){var h=Math.abs(c-k.values(f));if(b>h||b===h&&(f===k._lastChangedValue||k.values(f)===g.min))b=h,e=a(this),d=f});if(!1===this._start(f,d))return!1;this._mouseSliding=
  !0;this._handleIndex=d;e.addClass("ui-state-active").focus();h=e.offset();this._clickOffset=a(f.target).parents().addBack().is(".ui-slider-handle")?{left:f.pageX-h.left-e.width()/2,top:f.pageY-h.top-e.height()/2-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"),10)||0)+(parseInt(e.css("marginTop"),10)||0)}:{left:0,top:0};this.handles.hasClass("ui-state-hover")||this._slide(f,d,c);return this._animateOff=!0},_mouseStart:function(){return!0},_mouseDrag:function(a){var c=
  this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,c);return!1},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=!1;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){var c;"horizontal"===this.orientation?(c=this.elementSize.width,
  a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(c=this.elementSize.height,a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0));c=a/c;1<c&&(c=1);0>c&&(c=0);"vertical"===this.orientation&&(c=1-c);a=this._valueMax()-this._valueMin();c=this._valueMin()+c*a;return this._trimAlignValue(c)},_start:function(a,c){var b={handle:this.handles[c],value:this.value()};this.options.values&&this.options.values.length&&(b.value=this.values(c),b.values=this.values());
  return this._trigger("start",a,b)},_slide:function(a,c,b){var e;this.options.values&&this.options.values.length?(e=this.values(c?0:1),2===this.options.values.length&&!0===this.options.range&&(0===c&&b>e||1===c&&b<e)&&(b=e),b!==this.values(c)&&(e=this.values(),e[c]=b,a=this._trigger("slide",a,{handle:this.handles[c],value:b,values:e}),this.values(c?0:1),!1!==a&&this.values(c,b,!0))):b!==this.value()&&(a=this._trigger("slide",a,{handle:this.handles[c],value:b}),!1!==a&&this.value(b))},_stop:function(a,
  c){var b={handle:this.handles[c],value:this.value()};this.options.values&&this.options.values.length&&(b.value=this.values(c),b.values=this.values());this._trigger("stop",a,b)},_change:function(a,c){if(!this._keySliding&&!this._mouseSliding){var b={handle:this.handles[c],value:this.value()};this.options.values&&this.options.values.length&&(b.value=this.values(c),b.values=this.values());this._lastChangedValue=c;this._trigger("change",a,b)}},value:function(a){if(arguments.length)this.options.value=
  this._trimAlignValue(a),this._refreshValue(),this._change(null,0);else return this._value()},values:function(f,c){var b,e,d;if(1<arguments.length)this.options.values[f]=this._trimAlignValue(c),this._refreshValue(),this._change(null,f);else if(arguments.length)if(a.isArray(arguments[0])){b=this.options.values;e=arguments[0];for(d=0;d<b.length;d+=1)b[d]=this._trimAlignValue(e[d]),this._change(null,d);this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(f):this.value();
  else return this._values()},_setOption:function(f,c){var b,e=0;"range"===f&&!0===this.options.range&&("min"===c?(this.options.value=this._values(0),this.options.values=null):"max"===c&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null));a.isArray(this.options.values)&&(e=this.options.values.length);a.Widget.prototype._setOption.apply(this,arguments);switch(f){case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+
  this.orientation);this._refreshValue();break;case "value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case "values":this._animateOff=!0;this._refreshValue();for(b=0;b<e;b+=1)this._change(null,b);this._animateOff=!1;break;case "min":case "max":this._animateOff=!0;this._refreshValue();this._animateOff=!1;break;case "range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},
  _values:function(a){var c,b;if(arguments.length)return c=this.options.values[a],c=this._trimAlignValue(c);if(this.options.values&&this.options.values.length){c=this.options.values.slice();for(b=0;b<c.length;b+=1)c[b]=this._trimAlignValue(c[b]);return c}return[]},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var c=0<this.options.step?this.options.step:1,b=(a-this._valueMin())%c;a-=b;2*Math.abs(b)>=c&&(a+=0<b?c:-c);return parseFloat(a.toFixed(5))},
  _valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var f,c,b,e,d,h=this.options.range,k=this.options,g=this,l=this._animateOff?!1:k.animate,p={};if(this.options.values&&this.options.values.length)this.handles.each(function(d){c=(g.values(d)-g._valueMin())/(g._valueMax()-g._valueMin())*100;p["horizontal"===g.orientation?"left":"bottom"]=c+"%";a(this).stop(1,1)[l?"animate":"css"](p,k.animate);if(!0===g.options.range)if("horizontal"===
  g.orientation){if(0===d)g.range.stop(1,1)[l?"animate":"css"]({left:c+"%"},k.animate);if(1===d)g.range[l?"animate":"css"]({width:c-f+"%"},{queue:!1,duration:k.animate})}else{if(0===d)g.range.stop(1,1)[l?"animate":"css"]({bottom:c+"%"},k.animate);if(1===d)g.range[l?"animate":"css"]({height:c-f+"%"},{queue:!1,duration:k.animate})}f=c});else{b=this.value();e=this._valueMin();d=this._valueMax();c=d!==e?(b-e)/(d-e)*100:0;p["horizontal"===this.orientation?"left":"bottom"]=c+"%";this.handle.stop(1,1)[l?"animate":
  "css"](p,k.animate);if("min"===h&&"horizontal"===this.orientation)this.range.stop(1,1)[l?"animate":"css"]({width:c+"%"},k.animate);if("max"===h&&"horizontal"===this.orientation)this.range[l?"animate":"css"]({width:100-c+"%"},{queue:!1,duration:k.animate});if("min"===h&&"vertical"===this.orientation)this.range.stop(1,1)[l?"animate":"css"]({height:c+"%"},k.animate);if("max"===h&&"vertical"===this.orientation)this.range[l?"animate":"css"]({height:100-c+"%"},{queue:!1,duration:k.animate})}},_handleEvents:{keydown:function(f){var c,
  b,e,d=a(f.target).data("ui-slider-handle-index");switch(f.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(f.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(f.target).addClass("ui-state-active"),c=this._start(f,d),!1===c))return}e=this.options.step;c=this.options.values&&this.options.values.length?b=this.values(d):b=this.value();switch(f.keyCode){case a.ui.keyCode.HOME:b=
  this._valueMin();break;case a.ui.keyCode.END:b=this._valueMax();break;case a.ui.keyCode.PAGE_UP:b=this._trimAlignValue(c+(this._valueMax()-this._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:b=this._trimAlignValue(c-(this._valueMax()-this._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(c===this._valueMax())return;b=this._trimAlignValue(c+e);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(c===this._valueMin())return;b=this._trimAlignValue(c-e)}this._slide(f,d,b)},click:function(a){a.preventDefault()},
  keyup:function(f){var c=a(f.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(f,c),this._change(f,c),a(f.target).removeClass("ui-state-active"))}}})})(jQuery);
  (function(a){function g(a){return function(){var c=this.element.val();a.apply(this,arguments);this._refresh();c!==this.element.val()&&this._trigger("change")}}a.widget("ui.spinner",{version:"1.10.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);
  this._setOption("min",this.options.min);this._setOption("step",this.options.step);this._value(this.element.val(),!0);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var f={},c=this.element;a.each(["min","max","step"],function(a,e){var d=c.attr(e);void 0!==d&&d.length&&(f[e]=d)});return f},_events:{keydown:function(a){this._start(a)&&this._keydown(a)&&a.preventDefault()},keyup:"_stop",
  focus:function(){this.previous=this.element.val()},blur:function(a){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",a))},mousewheel:function(a,c){if(c){if(!this.spinning&&!this._start(a))return!1;this._spin((0<c?1:-1)*this.options.step,a);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(a)},100);a.preventDefault()}},"mousedown .ui-spinner-button":function(f){function c(){this.element[0]!==
  this.document[0].activeElement&&(this.element.focus(),this.previous=b,this._delay(function(){this.previous=b}))}var b;b=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();f.preventDefault();c.call(this);this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur;c.call(this)});!1!==this._start(f)&&this._repeat(null,a(f.currentTarget).hasClass("ui-spinner-up")?1:-1,f)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(f){if(a(f.currentTarget).hasClass("ui-state-active")){if(!1===
  this._start(f))return!1;this._repeat(null,a(f.currentTarget).hasClass("ui-spinner-up")?1:-1,f)}},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var a=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton");this.buttons=a.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all");this.buttons.height()>Math.ceil(.5*a.height())&&0<a.height()&&
  a.height(a.height());this.options.disabled&&this.disable()},_keydown:function(f){var c=this.options,b=a.ui.keyCode;switch(f.keyCode){case b.UP:return this._repeat(null,1,f),!0;case b.DOWN:return this._repeat(null,-1,f),!0;case b.PAGE_UP:return this._repeat(null,c.page,f),!0;case b.PAGE_DOWN:return this._repeat(null,-c.page,f),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+
  this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(a){if(!this.spinning&&!1===this._trigger("start",a))return!1;this.counter||(this.counter=1);return this.spinning=!0},_repeat:function(a,c,b){a=a||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,c,b)},a);this._spin(c*this.options.step,b)},_spin:function(a,c){var b=this.value()||0;this.counter||
  (this.counter=1);b=this._adjustValue(b+a*this._increment(this.counter));this.spinning&&!1===this._trigger("spin",c,{value:b})||(this._value(b),this.counter++)},_increment:function(f){var c=this.options.incremental;return c?a.isFunction(c)?c(f):Math.floor(f*f*f/5E4-f*f/500+17*f/200+1):1},_precision:function(){var a=this._precisionOf(this.options.step);null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min)));return a},_precisionOf:function(a){a=a.toString();var c=a.indexOf(".");
  return-1===c?0:a.length-c-1},_adjustValue:function(a){var c,b=this.options;c=null!==b.min?b.min:0;a=c+Math.round((a-c)/b.step)*b.step;a=parseFloat(a.toFixed(this._precision()));return null!==b.max&&a>b.max?b.max:null!==b.min&&a<b.min?b.min:a},_stop:function(a){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",a))},_setOption:function(a,c){if("culture"===a||"numberFormat"===a){var b=this._parse(this.element.val());this.options[a]=
  c;this.element.val(this._format(b))}else"max"!==a&&"min"!==a&&"step"!==a||"string"!==typeof c||(c=this._parse(c)),"icons"===a&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(c.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(c.down)),this._super(a,c),"disabled"===a&&(c?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:g(function(a){this._super(a);
  this._value(this.element.val())}),_parse:function(a){"string"===typeof a&&""!==a&&(a=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(a,10,this.options.culture):+a);return""===a||isNaN(a)?null:a},_format:function(a){return""===a?"":window.Globalize&&this.options.numberFormat?Globalize.format(a,this.options.numberFormat,this.options.culture):a},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},
  _value:function(a,c){var b;""!==a&&(b=this._parse(a),null!==b&&(c||(b=this._adjustValue(b)),a=this._format(b)));this.element.val(a);this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:g(function(a){this._stepUp(a)}),_stepUp:function(a){this._start()&&(this._spin((a||1)*this.options.step),
  this._stop())},stepDown:g(function(a){this._stepDown(a)}),_stepDown:function(a){this._start()&&(this._spin((a||1)*-this.options.step),this._stop())},pageUp:g(function(a){this._stepUp((a||1)*this.options.page)}),pageDown:g(function(a){this._stepDown((a||1)*this.options.page)}),value:function(a){if(!arguments.length)return this._parse(this.element.val());g(this._value).call(this,a)},widget:function(){return this.uiSpinner}})})(jQuery);
  (function(a,g){function f(a){return 1<a.hash.length&&decodeURIComponent(a.href.replace(b,""))===decodeURIComponent(location.href.replace(b,""))}var c=0,b=/#.*$/;a.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var b=this,d=this.options;this.running=!1;this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",
  d.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(d){a(this).is(".ui-state-disabled")&&d.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){a(this).closest("li").is(".ui-state-disabled")&&this.blur()});this._processTabs();d.active=this._initialActive();a.isArray(d.disabled)&&(d.disabled=a.unique(d.disabled.concat(a.map(this.tabs.filter(".ui-state-disabled"),function(a){return b.tabs.index(a)}))).sort());this.active=!1!==this.options.active&&
  this.anchors.length?this._findActive(d.active):a();this._refresh();this.active.length&&this.load(d.active)},_initialActive:function(){var b=this.options.active,d=this.options.collapsible,c=location.hash.substring(1);null===b&&(c&&this.tabs.each(function(d,f){if(a(f).attr("aria-controls")===c)return b=d,!1}),null===b&&(b=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null===b||-1===b)&&(b=this.tabs.length?0:!1);!1!==b&&(b=this.tabs.index(this.tabs.eq(b)),-1===b&&(b=d?!1:0));!d&&!1===b&&this.anchors.length&&
  (b=0);return b},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):a()}},_tabKeydown:function(b){var d=a(this.document[0].activeElement).closest("li"),c=this.tabs.index(d),f=!0;if(!this._handlePageNav(b)){switch(b.keyCode){case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:c++;break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:f=!1;c--;break;case a.ui.keyCode.END:c=this.anchors.length-1;break;case a.ui.keyCode.HOME:c=0;break;case a.ui.keyCode.SPACE:b.preventDefault();
  clearTimeout(this.activating);this._activate(c);return;case a.ui.keyCode.ENTER:b.preventDefault();clearTimeout(this.activating);this._activate(c===this.options.active?!1:c);return;default:return}b.preventDefault();clearTimeout(this.activating);c=this._focusNextTab(c,f);b.ctrlKey||(d.attr("aria-selected","false"),this.tabs.eq(c).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",c)},this.delay))}},_panelKeydown:function(b){!this._handlePageNav(b)&&b.ctrlKey&&b.keyCode===
  a.ui.keyCode.UP&&(b.preventDefault(),this.active.focus())},_handlePageNav:function(b){if(b.altKey&&b.keyCode===a.ui.keyCode.PAGE_UP)return this._activate(this._focusNextTab(this.options.active-1,!1)),!0;if(b.altKey&&b.keyCode===a.ui.keyCode.PAGE_DOWN)return this._activate(this._focusNextTab(this.options.active+1,!0)),!0},_findNextTab:function(b,d){function c(){b>f&&(b=0);0>b&&(b=f);return b}for(var f=this.tabs.length-1;-1!==a.inArray(c(),this.options.disabled);)b=d?b+1:b-1;return b},_focusNextTab:function(a,
  d){a=this._findNextTab(a,d);this.tabs.eq(a).focus();return a},_setOption:function(a,d){"active"===a?this._activate(d):"disabled"===a?this._setupDisabled(d):(this._super(a,d),"collapsible"===a&&(this.element.toggleClass("ui-tabs-collapsible",d),d||!1!==this.options.active||this._activate(0)),"event"===a&&this._setupEvents(d),"heightStyle"===a&&this._setupHeightStyle(d))},_tabId:function(a){return a.attr("aria-controls")||"ui-tabs-"+ ++c},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,
  "\\$&"):""},refresh:function(){var b=this.options,d=this.tablist.children(":has(a[href])");b.disabled=a.map(d.filter(".ui-state-disabled"),function(a){return d.index(a)});this._processTabs();!1!==b.active&&this.anchors.length?this.active.length&&!a.contains(this.tablist[0],this.active[0])?this.tabs.length===b.disabled.length?(b.active=!1,this.active=a()):this._activate(this._findNextTab(Math.max(0,b.active-1),!1)):b.active=this.tabs.index(this.active):(b.active=!1,this.active=a());this._refresh()},
  _refresh:function(){this._setupDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"});this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true",
  "aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var b=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist");this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1});this.anchors=this.tabs.map(function(){return a("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1});this.panels=
  a();this.anchors.each(function(d,c){var k,g,l,p=a(c).uniqueId().attr("id"),n=a(c).closest("li"),q=n.attr("aria-controls");f(c)?(k=c.hash,g=b.element.find(b._sanitizeSelector(k))):(l=b._tabId(n),k="#"+l,g=b.element.find(k),g.length||(g=b._createPanel(l),g.insertAfter(b.panels[d-1]||b.tablist)),g.attr("aria-live","polite"));g.length&&(b.panels=b.panels.add(g));q&&n.data("ui-tabs-aria-controls",q);n.attr({"aria-controls":k.substring(1),"aria-labelledby":p});g.attr("aria-labelledby",p)});this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role",
  "tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(b){return a("<div>").attr("id",b).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(b){a.isArray(b)&&(b.length?b.length===this.anchors.length&&(b=!0):b=!1);for(var d=0,c;c=this.tabs[d];d++)!0===b||-1!==a.inArray(d,b)?a(c).addClass("ui-state-disabled").attr("aria-disabled","true"):a(c).removeClass("ui-state-disabled").removeAttr("aria-disabled");
  this.options.disabled=b},_setupEvents:function(b){var d={click:function(a){a.preventDefault()}};b&&a.each(b.split(" "),function(a,b){d[b]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(this.anchors,d);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(b){var d,c=this.element.parent();"fill"===b?(d=c.height(),d-=this.element.outerHeight()-this.element.height(),
  this.element.siblings(":visible").each(function(){var b=a(this),c=b.css("position");"absolute"!==c&&"fixed"!==c&&(d-=b.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){d-=a(this).outerHeight(!0)}),this.panels.each(function(){a(this).height(Math.max(0,d-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===b&&(d=0,this.panels.each(function(){d=Math.max(d,a(this).height("").height())}).height(d))},_eventHandler:function(b){var d=this.options,c=this.active,
  f=a(b.currentTarget).closest("li"),g=f[0]===c[0],l=g&&d.collapsible,p=l?a():this._getPanelForTab(f),n=c.length?this._getPanelForTab(c):a(),c={oldTab:c,oldPanel:n,newTab:l?a():f,newPanel:p};b.preventDefault();f.hasClass("ui-state-disabled")||f.hasClass("ui-tabs-loading")||this.running||g&&!d.collapsible||!1===this._trigger("beforeActivate",b,c)||(d.active=l?!1:this.tabs.index(f),this.active=g?a():f,this.xhr&&this.xhr.abort(),n.length||p.length||a.error("jQuery UI Tabs: Mismatching fragment identifier."),
  p.length&&this.load(this.tabs.index(f),b),this._toggle(b,c))},_toggle:function(b,d){function c(){g.running=!1;g._trigger("activate",b,d)}function f(){d.newTab.closest("li").addClass("ui-tabs-active ui-state-active");l.length&&g.options.show?g._show(l,g.options.show,c):(l.show(),c())}var g=this,l=d.newPanel,p=d.oldPanel;this.running=!0;p.length&&this.options.hide?this._hide(p,this.options.hide,function(){d.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");f()}):(d.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),
  p.hide(),f());p.attr({"aria-expanded":"false","aria-hidden":"true"});d.oldTab.attr("aria-selected","false");l.length&&p.length?d.oldTab.attr("tabIndex",-1):l.length&&this.tabs.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1);l.attr({"aria-expanded":"true","aria-hidden":"false"});d.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(b){b=this._findActive(b);b[0]!==this.active[0]&&(b.length||(b=this.active),b=b.find(".ui-tabs-anchor")[0],this._eventHandler({target:b,
  currentTarget:b,preventDefault:a.noop}))},_findActive:function(b){return!1===b?a():this.tabs.eq(b)},_getIndex:function(a){"string"===typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']")));return a},_destroy:function(){this.xhr&&this.xhr.abort();this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible");this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role");this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId();
  this.tabs.add(this.panels).each(function(){a.data(this,"ui-tabs-destroy")?a(this).remove():a(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")});this.tabs.each(function(){var b=a(this),d=b.data("ui-tabs-aria-controls");
  d?b.attr("aria-controls",d).removeData("ui-tabs-aria-controls"):b.removeAttr("aria-controls")});this.panels.show();"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(b){var d=this.options.disabled;!1!==d&&(b===g?d=!1:(b=this._getIndex(b),d=a.isArray(d)?a.map(d,function(a){return a!==b?a:null}):a.map(this.tabs,function(a,d){return d!==b?d:null})),this._setupDisabled(d))},disable:function(b){var d=this.options.disabled;if(!0!==d){if(b===g)d=!0;else{b=this._getIndex(b);
  if(-1!==a.inArray(b,d))return;d=a.isArray(d)?a.merge([b],d).sort():[b]}this._setupDisabled(d)}},load:function(b,d){b=this._getIndex(b);var c=this,k=this.tabs.eq(b),g=k.find(".ui-tabs-anchor"),l=this._getPanelForTab(k),p={tab:k,panel:l};f(g[0])||(this.xhr=a.ajax(this._ajaxSettings(g,d,p)))&&"canceled"!==this.xhr.statusText&&(k.addClass("ui-tabs-loading"),l.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){l.html(a);c._trigger("load",d,p)},1)}).complete(function(a,d){setTimeout(function(){"abort"===
  d&&c.panels.stop(!1,!0);k.removeClass("ui-tabs-loading");l.removeAttr("aria-busy");a===c.xhr&&delete c.xhr},1)}))},_ajaxSettings:function(b,d,c){var f=this;return{url:b.attr("href"),beforeSend:function(b,e){return f._trigger("beforeLoad",d,a.extend({jqXHR:b,ajaxSettings:e},c))}}},_getPanelForTab:function(b){b=a(b).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+b))}})})(jQuery);
  (function(a){function g(b,c){var d=(b.attr("aria-describedby")||"").split(/\s+/);d.push(c);b.data("ui-tooltip-id",c).attr("aria-describedby",a.trim(d.join(" ")))}function f(b){var c=b.data("ui-tooltip-id"),d=(b.attr("aria-describedby")||"").split(/\s+/),c=a.inArray(c,d);-1!==c&&d.splice(c,1);b.removeData("ui-tooltip-id");(d=a.trim(d.join(" ")))?b.attr("aria-describedby",d):b.removeAttr("aria-describedby")}var c=0;a.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var b=a(this).attr("title")||
  "";return a("<a>").text(b).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};this.options.disabled&&this._disable()},_setOption:function(b,c){var d=this;"disabled"===b?(this[c?"_disable":"_enable"](),this.options[b]=c):(this._super(b,c),"content"===b&&a.each(this.tooltips,function(a,
  b){d._updateContent(b)}))},_disable:function(){var b=this;a.each(this.tooltips,function(c,d){var f=a.Event("blur");f.target=f.currentTarget=d[0];b.close(f,!0)});this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.is("[title]")&&b.data("ui-tooltip-title",b.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.data("ui-tooltip-title")&&b.attr("title",b.data("ui-tooltip-title"))})},open:function(b){var c=
  this,d=a(b?b.target:this.element).closest(this.options.items);d.length&&!d.data("ui-tooltip-id")&&(d.attr("title")&&d.data("ui-tooltip-title",d.attr("title")),d.data("ui-tooltip-open",!0),b&&"mouseover"===b.type&&d.parents().each(function(){var d=a(this),b;d.data("ui-tooltip-open")&&(b=a.Event("blur"),b.target=b.currentTarget=this,c.close(b,!0));d.attr("title")&&(d.uniqueId(),c.parents[this.id]={element:this,title:d.attr("title")},d.attr("title",""))}),this._updateContent(d,b))},_updateContent:function(a,
  c){var d;d=this.options.content;var f=this,k=c?c.type:null;if("string"===typeof d)return this._open(c,a,d);(d=d.call(a[0],function(d){a.data("ui-tooltip-open")&&f._delay(function(){c&&(c.type=k);this._open(c,a,d)})}))&&this._open(c,a,d)},_open:function(b,c,d){function f(a){l.of=a;k.is(":hidden")||k.position(l)}var k,m,l=a.extend({},this.options.position);d&&(k=this._find(c),k.length?k.find(".ui-tooltip-content").html(d):(c.is("[title]")&&(b&&"mouseover"===b.type?c.attr("title",""):c.removeAttr("title")),
  k=this._tooltip(c),g(c,k.attr("id")),k.find(".ui-tooltip-content").html(d),this.options.track&&b&&/^mouse/.test(b.type)?(this._on(this.document,{mousemove:f}),f(b)):k.position(a.extend({of:c},this.options.position)),k.hide(),this._show(k,this.options.show),this.options.show&&this.options.show.delay&&(m=this.delayedShow=setInterval(function(){k.is(":visible")&&(f(l.of),clearInterval(m))},a.fx.interval)),this._trigger("open",b,{tooltip:k}),d={keyup:function(d){d.keyCode===a.ui.keyCode.ESCAPE&&(d=a.Event(d),
  d.currentTarget=c[0],this.close(d,!0))},remove:function(){this._removeTooltip(k)}},b&&"mouseover"!==b.type||(d.mouseleave="close"),b&&"focusin"!==b.type||(d.focusout="close"),this._on(!0,c,d)))},close:function(b){var c=this,d=a(b?b.currentTarget:this.element),h=this._find(d);this.closing||(clearInterval(this.delayedShow),d.data("ui-tooltip-title")&&d.attr("title",d.data("ui-tooltip-title")),f(d),h.stop(!0),this._hide(h,this.options.hide,function(){c._removeTooltip(a(this))}),d.removeData("ui-tooltip-open"),
  this._off(d,"mouseleave focusout keyup"),d[0]!==this.element[0]&&this._off(d,"remove"),this._off(this.document,"mousemove"),b&&"mouseleave"===b.type&&a.each(this.parents,function(d,b){a(b.element).attr("title",b.title);delete c.parents[d]}),this.closing=!0,this._trigger("close",b,{tooltip:h}),this.closing=!1)},_tooltip:function(b){var e="ui-tooltip-"+c++,d=a("<div>").attr({id:e,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));a("<div>").addClass("ui-tooltip-content").appendTo(d);
  d.appendTo(this.document[0].body);this.tooltips[e]=b;return d},_find:function(b){return(b=b.data("ui-tooltip-id"))?a("#"+b):a()},_removeTooltip:function(a){a.remove();delete this.tooltips[a.attr("id")]},_destroy:function(){var b=this;a.each(this.tooltips,function(c,d){var f=a.Event("blur");f.target=f.currentTarget=d[0];b.close(f,!0);a("#"+c).remove();d.data("ui-tooltip-title")&&(d.attr("title",d.data("ui-tooltip-title")),d.removeData("ui-tooltip-title"))})}})})(jQuery);(function(a){var g=0,f=null;a.fn.resetBreakpoints=function(){a(window).unbind("resize");f&&clearInterval(f);g=0};a.fn.setBreakpoints=function(c){var b=jQuery.extend({distinct:!0,breakpoints:[320,480,768,1024]},c);f=setInterval(function(){var c=a(window).width(),d=!1,f;for(f in b.breakpoints.sort(function(a,d){return d-a})){if(!d&&c>=b.breakpoints[f]&&g<b.breakpoints[f]){if(b.distinct){for(var k in b.breakpoints.sort(function(a,d){return d-a}))a("body").hasClass("breakpoint-"+b.breakpoints[k])&&(a("body").removeClass("breakpoint-"+
  b.breakpoints[k]),a(window).trigger("exitBreakpoint"+b.breakpoints[k]));d=!0}a("body").addClass("breakpoint-"+b.breakpoints[f]);a(window).trigger("enterBreakpoint"+b.breakpoints[f])}c<b.breakpoints[f]&&g>=b.breakpoints[f]&&(a("body").removeClass("breakpoint-"+b.breakpoints[f]),a(window).trigger("exitBreakpoint"+b.breakpoints[f]));b.distinct&&c>=b.breakpoints[f]&&c<b.breakpoints[f-1]&&g>c&&0<g&&!a("body").hasClass("breakpoint-"+b.breakpoints[f])&&(a("body").addClass("breakpoint-"+b.breakpoints[f]),
  a(window).trigger("enterBreakpoint"+b.breakpoints[f]))}g!=c&&(g=c)},250)}})(jQuery);(function(a){"function"===typeof define&&define.amd?define(["jquery"],a):"object"===typeof exports?a(require("jquery")):a(jQuery)})(function(a){function g(a){a=b.json?JSON.stringify(a):String(a);return b.raw?a:encodeURIComponent(a)}function f(e,d){var f;if(b.raw)f=e;else a:{var k=e;0===k.indexOf('"')&&(k=k.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{k=decodeURIComponent(k.replace(c," "));f=b.json?JSON.parse(k):k;break a}catch(g){}f=void 0}return a.isFunction(d)?d(f):f}var c=/\+/g,b=
  a.cookie=function(c,d,h){if(void 0!==d&&!a.isFunction(d)){h=a.extend({},b.defaults,h);if("number"===typeof h.expires){var k=h.expires,m=h.expires=new Date;m.setTime(+m+864E5*k)}return document.cookie=[b.raw?c:encodeURIComponent(c),"=",g(d),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join("")}h=c?void 0:{};for(var k=document.cookie?document.cookie.split("; "):[],m=0,l=k.length;m<l;m++){var p=k[m].split("="),n;
  n=p.shift();n=b.raw?n:decodeURIComponent(n);p=p.join("=");if(c&&c===n){h=f(p,d);break}c||void 0===(p=f(p))||(h[n]=p)}return h};b.defaults={};a.removeCookie=function(b,d){if(void 0===a.cookie(b))return!1;a.cookie(b,"",a.extend({},d,{expires:-1}));return!a.cookie(b)}});(function(a){function g(){this.isField=!0;this.keyboardMode=this.hasLabel=this.cutOff=this.disabled=this.inFocus=this.down=!1;this.nativeTouch=!0;this.wrapperClass="dropdown";this.onChange=null}g.prototype={constructor:g,instances:[],init:function(c,b){var e=this;a.extend(e,b);e.$select=a(c);e.id=c.id;e.options=[];e.$options=e.$select.find("option");e.isTouch="ontouchend"in document;e.$select.removeClass(e.wrapperClass+" dropdown");e.$select.is(":disabled")&&(e.disabled=!0);e.$options.length&&(e.$options.each(function(d){var b=
  a(this);b.is(":selected")&&(e.selected={index:d,title:b.text()},e.focusIndex=d);b.hasClass("label")&&0==d?(e.hasLabel=!0,e.label=b.text(),b.attr("value","")):e.options.push({domNode:b[0],title:b.text(),value:b.val(),selected:b.is(":selected")})}),e.selected||(e.selected={index:0,title:e.$options.eq(0).text()},e.focusIndex=0),e.render())},render:function(){var c=this;c.$container=c.$select.wrap('<div class="'+c.wrapperClass+(c.isTouch&&c.nativeTouch?" touch":"")+(c.disabled?" disabled":"")+'"><span class="old"/></div>').parent().parent();
  c.$active=a('<span class="selected">'+c.selected.title+"</span>").appendTo(c.$container);c.$carat=a('<span class="carat icon-chevron-down"/>').appendTo(c.$container);c.$scrollWrapper=a("<div><ul/></div>").appendTo(c.$container);c.$dropDown=c.$scrollWrapper.find("ul");c.$form=c.$container.closest("form");a.each(c.options,function(){c.$dropDown.append("<li"+(this.selected?' class="active"':"")+">"+this.title+"</li>")});c.$items=c.$dropDown.find("li");c.maxHeight=0;c.cutOff&&c.$items.length>c.cutOff&&
  c.$container.addClass("scrollable");for(i=0;i<c.$items.length;i++){var b=c.$items.eq(i);c.maxHeight+=b.outerHeight();if(c.cutOff==i+1)break}c.isTouch&&c.nativeTouch?c.bindTouchHandlers():c.bindHandlers()},bindTouchHandlers:function(){var c=this;c.$container.on("click.easyDropDown",function(){c.$select.focus()});c.$select.on({change:function(){var b=a(this).find("option:selected"),e=b.text(),b=b.val();c.$active.text(e);"function"===typeof c.onChange&&c.onChange.call(c.$select[0],{title:e,value:b})},
  focus:function(){c.$container.addClass("focus")},blur:function(){c.$container.removeClass("focus")}})},bindHandlers:function(){var c=this;c.query="";c.$container.on({"click.easyDropDown":function(){c.down||c.disabled?c.close():c.open()},"mousemove.easyDropDown":function(){c.keyboardMode&&(c.keyboardMode=!1)}});a("body").on("click.easyDropDown."+c.id,function(b){b=a(b.target);var e=c.wrapperClass.split(" ").join(".");!b.closest("."+e).length&&c.down&&c.close()});c.$items.on({"click.easyDropDown":function(){var b=
  a(this).index();c.select(b);c.$select.focus()},"mouseover.easyDropDown":function(){if(!c.keyboardMode){var b=a(this);b.addClass("focus").siblings().removeClass("focus");c.focusIndex=b.index()}},"mouseout.easyDropDown":function(){c.keyboardMode||a(this).removeClass("focus")}});c.$select.on({"focus.easyDropDown":function(){c.$container.addClass("focus");c.inFocus=!0},"blur.easyDropDown":function(){c.$container.removeClass("focus");c.inFocus=!1},"keydown.easyDropDown":function(a){if(c.inFocus){c.keyboardMode=
  !0;var e=a.keyCode;if(38==e||40==e||32==e)a.preventDefault(),38==e?(c.focusIndex--,c.focusIndex=0>c.focusIndex?c.$items.length-1:c.focusIndex):40==e&&(c.focusIndex++,c.focusIndex=c.focusIndex>c.$items.length-1?0:c.focusIndex),c.down||c.open(),c.$items.removeClass("focus").eq(c.focusIndex).addClass("focus"),c.cutOff&&c.scrollToView(),c.query="";if(c.down)if(9==e||27==e)c.close();else{if(13==e)return a.preventDefault(),c.select(c.focusIndex),c.close(),!1;if(8==e)return a.preventDefault(),c.query=c.query.slice(0,
  -1),c.search(),clearTimeout(c.resetQuery),!1;38!=e&&40!=e&&(a=String.fromCharCode(e),c.query+=a,c.search(),clearTimeout(c.resetQuery))}}},"keyup.easyDropDown":function(){c.resetQuery=setTimeout(function(){c.query=""},1200)}});c.$dropDown.on("scroll.easyDropDown",function(a){c.$dropDown[0].scrollTop>=c.$dropDown[0].scrollHeight-c.maxHeight?c.$container.addClass("bottom"):c.$container.removeClass("bottom")});if(c.$form.length)c.$form.on("reset.easyDropDown",function(){c.$active.text(c.hasLabel?c.label:
  c.options[0].title)})},unbindHandlers:function(){this.$container.add(this.$select).add(this.$items).add(this.$form).add(this.$dropDown).off(".easyDropDown");a("body").off("."+this.id)},open:function(){var a=window.scrollY||document.documentElement.scrollTop,b=window.scrollX||document.documentElement.scrollLeft,e=this.notInViewport(a);this.closeAll();this.$select.focus();window.scrollTo(b,a+e);this.$container.addClass("open");this.$scrollWrapper.css("height",this.maxHeight+"px");this.down=!0},close:function(){this.$container.removeClass("open");
  this.$scrollWrapper.css("height","0px");this.focusIndex=this.selected.index;this.query="";this.down=!1},closeAll:function(){var a=Object.getPrototypeOf(this).instances,b;for(b in a)a[b].close()},select:function(a){"string"===typeof a&&(a=this.$select.find("option[value="+a+"]").index()-1);var b=this.options[a],e=this.hasLabel?a+1:a;this.$items.removeClass("active").eq(a).addClass("active");this.$active.text(b.title);this.$select.find("option").removeAttr("selected").eq(e).prop("selected",!0).parent().trigger("change");
  this.selected={index:a,title:b.title};this.focusIndex=i;"function"===typeof this.onChange&&this.onChange.call(this.$select[0],{title:b.title,value:b.value})},search:function(){var a=this,b=function(d){a.focusIndex=d;a.$items.removeClass("focus").eq(a.focusIndex).addClass("focus");a.scrollToView()};for(i=0;i<a.options.length;i++){var e=a.options[i].title.toUpperCase();if(0==e.indexOf(a.query)){b(i);return}}for(i=0;i<a.options.length;i++)if(e=a.options[i].title.toUpperCase(),-1<e.indexOf(a.query)){b(i);
  break}},scrollToView:function(){if(this.focusIndex>=this.cutOff){var a=this.$items.eq(this.focusIndex).outerHeight()*(this.focusIndex+1)-this.maxHeight;this.$dropDown.scrollTop(a)}},notInViewport:function(a){var b=a+(window.innerHeight||document.documentElement.clientHeight),e=this.$dropDown.offset().top+this.maxHeight;return e>=a&&e<=b?0:e-b+5},destroy:function(){this.unbindHandlers();this.$select.unwrap().siblings().remove();this.$select.unwrap();delete Object.getPrototypeOf(this).instances[this.$select[0].id]},
  disable:function(){this.disabled=!0;this.$container.addClass("disabled");this.$select.attr("disabled",!0);this.down||this.close()},enable:function(){this.disabled=!1;this.$container.removeClass("disabled");this.$select.attr("disabled",!1)}};var f=function(a,b){a.id=a.id?a.id:"EasyDropDown"+("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6).toUpperCase();var e=new g;e.instances[a.id]||(e.instances[a.id]=e,e.init(a,b))};a.fn.easyDropDown=function(){var a=arguments,b=[],e;e=this.each(function(){if(a&&
  "string"===typeof a[0]){var d=g.prototype.instances[this.id][a[0]](a[1],a[2]);d&&b.push(d)}else f(this,a[0])});return b.length?1<b.length?b:b[0]:e};a(function(){"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(a){return a.__proto__}:function(a){return a.constructor.prototype});a("select.dropdown").each(function(){var c=a(this).attr("data-settings");settings=c?a.parseJSON(c):{};f(this,settings)})})})(jQuery);!function(a,g){"function"==typeof define&&define.amd?define(["jquery"],g):g("object"==typeof exports?require("jquery"):a.jQuery?a.jQuery:a.Zepto)}(this,function(a,g){a.fn.jPlayer=function(d){var b="string"==typeof d,c=Array.prototype.slice.call(arguments,1),e=this;return d=!b&&c.length?a.extend.apply(null,[!0,d].concat(c)):d,b&&"_"===d.charAt(0)?e:(this.each(b?function(){var b=a(this).data("jPlayer"),f=b&&a.isFunction(b[d])?b[d].apply(b,c):b;return f!==b&&f!==g?(e=f,!1):void 0}:function(){var b=a(this).data("jPlayer");
  b?b.option(d||{}):a(this).data("jPlayer",new a.jPlayer(d,this))}),e)};a.jPlayer=function(d,b){if(arguments.length){this.element=a(b);this.options=a.extend(!0,{},this.options,d);var c=this;this.element.bind("remove.jPlayer",function(){c.destroy()});this._init()}};"function"!=typeof a.fn.stop&&(a.fn.stop=function(){});a.jPlayer.emulateMethods="load play pause";a.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate";a.jPlayer.emulateOptions="muted volume";
  a.jPlayer.reservedEvent="ready flashreset resize repeat error warning";a.jPlayer.event={};a.each("ready setmedia flashreset resize repeat click error warning loadstart progress suspend abort emptied stalled play pause loadedmetadata loadeddata waiting playing canplay canplaythrough seeking seeked timeupdate ended ratechange durationchange volumechange".split(" "),function(){a.jPlayer.event[this]="jPlayer_"+this});a.jPlayer.htmlEvent="loadstart abort emptied stalled loadedmetadata canplay canplaythrough".split(" ");
  a.jPlayer.pause=function(){a.jPlayer.prototype.destroyRemoved();a.each(a.jPlayer.prototype.instances,function(a,b){b.data("jPlayer").status.srcSet&&b.jPlayer("pause")})};a.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var f=function(){this.init()};f.prototype={init:function(){this.options={timeFormat:a.jPlayer.timeFormat}},time:function(a){var b=new Date(1E3*(a&&"number"==typeof a?a:0));a=b.getUTCHours();var c=this.options.timeFormat.showHour?
  b.getUTCMinutes():b.getUTCMinutes()+60*a,b=this.options.timeFormat.showMin?b.getUTCSeconds():b.getUTCSeconds()+60*c;a=this.options.timeFormat.padHour&&10>a?"0"+a:a;var c=this.options.timeFormat.padMin&&10>c?"0"+c:c,b=this.options.timeFormat.padSec&&10>b?"0"+b:b,e="";return e+=this.options.timeFormat.showHour?a+this.options.timeFormat.sepHour:"",e+=this.options.timeFormat.showMin?c+this.options.timeFormat.sepMin:"",e+(this.options.timeFormat.showSec?b+this.options.timeFormat.sepSec:"")}};var c=new f;
  a.jPlayer.convertTime=function(a){return c.time(a)};a.jPlayer.uaBrowser=function(a){a=a.toLowerCase();var b=/(opera)(?:.*version)?[ \/]([\w.]+)/,c=/(msie) ([\w.]+)/,e=/(mozilla)(?:.*? rv:([\w.]+))?/;a=/(webkit)[ \/]([\w.]+)/.exec(a)||b.exec(a)||c.exec(a)||0>a.indexOf("compatible")&&e.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}};a.jPlayer.uaPlatform=function(a){var b=a.toLowerCase(),c=/(android)/,e=/(mobile)/;a=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(b)||[];
  b=/(ipad|playbook)/.exec(b)||!e.exec(b)&&c.exec(b)||[];return a[1]&&(a[1]=a[1].replace(/\s/g,"_")),{platform:a[1]||"",tablet:b[1]||""}};a.jPlayer.browser={};a.jPlayer.platform={};var b=a.jPlayer.uaBrowser(navigator.userAgent);b.browser&&(a.jPlayer.browser[b.browser]=!0,a.jPlayer.browser.version=b.version);b=a.jPlayer.uaPlatform(navigator.userAgent);b.platform&&(a.jPlayer.platform[b.platform]=!0,a.jPlayer.platform.mobile=!b.tablet,a.jPlayer.platform.tablet=!!b.tablet);a.jPlayer.getDocMode=function(){var d;
  return a.jPlayer.browser.msie&&(document.documentMode?d=document.documentMode:(d=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(d=7))),d};a.jPlayer.browser.documentMode=a.jPlayer.getDocMode();a.jPlayer.nativeFeatures={init:function(){var a,b,c,e=document;a=e.createElement("video");var f={w3c:"fullscreenEnabled fullscreenElement requestFullscreen exitFullscreen fullscreenchange fullscreenerror".split(" "),moz:"mozFullScreenEnabled mozFullScreenElement mozRequestFullScreen mozCancelFullScreen mozfullscreenchange mozfullscreenerror".split(" "),
  webkit:" webkitCurrentFullScreenElement webkitRequestFullScreen webkitCancelFullScreen webkitfullscreenchange ".split(" "),webkitVideo:"webkitSupportsFullscreen webkitDisplayingFullscreen webkitEnterFullscreen webkitExitFullscreen  ".split(" "),ms:" msFullscreenElement msRequestFullscreen msExitFullscreen MSFullscreenChange MSFullscreenError".split(" ")},g=["w3c","moz","webkit","webkitVideo","ms"];this.fullscreen=a={support:{w3c:!!e[f.w3c[0]],moz:!!e[f.moz[0]],webkit:"function"==typeof e[f.webkit[3]],
  webkitVideo:"function"==typeof a[f.webkitVideo[2]],ms:"function"==typeof a[f.ms[2]]},used:{}};b=0;for(c=g.length;c>b;b++){var n=g[b];if(a.support[n]){a.spec=n;a.used[n]=!0;break}}if(a.spec){var q=f[a.spec];a.api={fullscreenEnabled:!0,fullscreenElement:function(a){return a=a?a:e,a[q[1]]},requestFullscreen:function(a){return a[q[2]]()},exitFullscreen:function(a){return a=a?a:e,a[q[3]]()}};a.event={fullscreenchange:q[4],fullscreenerror:q[5]}}else a.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},
  requestFullscreen:function(){},exitFullscreen:function(){}},a.event={}}};a.jPlayer.nativeFeatures.init();a.jPlayer.focus=null;a.jPlayer.keyIgnoreElementNames="A INPUT TEXTAREA SELECT BUTTON";var e=function(d){var b,c=a.jPlayer.focus;c&&(a.each(a.jPlayer.keyIgnoreElementNames.split(/\s+/g),function(a,c){return d.target.nodeName.toUpperCase()===c.toUpperCase()?(b=!0,!1):void 0}),b||a.each(c.options.keyBindings,function(b,e){return e&&a.isFunction(e.fn)&&("number"==typeof e.key&&d.which===e.key||"string"==
  typeof e.key&&d.key===e.key)?(d.preventDefault(),e.fn(c),!1):void 0}))};a.jPlayer.keys=function(d){a(document.documentElement).unbind("keydown.jPlayer");d&&a(document.documentElement).bind("keydown.jPlayer",e)};a.jPlayer.keys(!0);a.jPlayer.prototype={count:0,version:{script:"2.9.2",needFlash:"2.9.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",auroraFormats:"wav",preload:"metadata",volume:.8,muted:!1,remainingDuration:!1,toggleDuration:!1,captureDuration:!0,playbackRate:1,
  defaultPlaybackRate:1,minPlaybackRate:.5,maxPlaybackRate:4,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",
  duration:".jp-duration",title:".jp-title",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},stateClass:{playing:"jp-state-playing",seeking:"jp-state-seeking",muted:"jp-state-muted",looped:"jp-state-looped",fullScreen:"jp-state-full-screen",noVolume:"jp-state-no-volume"},useStateClassSkin:!1,autoBlur:!0,smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,
  hold:1E3},loop:!1,repeat:function(d){d.jPlayer.options.loop?a(this).unbind(".jPlayerRepeat").bind(a.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){a(this).jPlayer("play")}):a(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/(?=.*android)(?!.*chrome)(?=.*mobile)/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},
  noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:80,fn:function(a){a.status.paused?a.play():a.pause()}},fullScreen:{key:70,fn:function(a){(a.status.video||a.options.audioFullScreen)&&a._setOption("fullScreen",!a.options.fullScreen)}},muted:{key:77,fn:function(a){a._muted(!a.options.muted)}},
  volumeUp:{key:190,fn:function(a){a.volume(a.options.volume+.1)}},volumeDown:{key:188,fn:function(a){a.volume(a.options.volume-.1)}},loop:{key:76,fn:function(a){a._loop(!a.options.loop)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",
  cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,remaining:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,aurora:!0,flash:!0},format:{mp3:{codec:"audio/mpeg",flashCanPlay:!0,media:"audio"},
  m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',flashCanPlay:!1,media:"audio"},m3ua:{codec:"audio/mpegurl",flashCanPlay:!1,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:"audio"},flac:{codec:"audio/x-flac",flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},
  fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:"video"},m3uv:{codec:"audio/mpegurl",flashCanPlay:!1,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',
  flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:"video"}},_init:function(){var d=this;if(this.element.empty(),this.status=a.extend({},this.status),this.internal=a.extend({},this.internal),this.options.timeFormat=a.extend({},a.jPlayer.timeFormat,this.options.timeFormat),this.internal.cmdsIgnored=a.jPlayer.platform.ipad||a.jPlayer.platform.iphone||a.jPlayer.platform.ipod,this.internal.domNode=this.element.get(0),
  this.options.keyEnabled&&!a.jPlayer.focus&&(a.jPlayer.focus=this),this.androidFix={setMedia:!1,play:!1,pause:!1,time:0/0},a.jPlayer.platform.android&&(this.options.preload="auto"!==this.options.preload?"metadata":"auto"),this.formats=[],this.solutions=[],this.require={},this.htmlElement={},this.html={},this.html.audio={},this.html.video={},this.aurora={},this.aurora.formats=[],this.aurora.properties=[],this.flash={},this.css={},this.css.cs={},this.css.jq={},this.ancestorJq=[],this.options.volume=
  this._limitValue(this.options.volume,0,1),a.each(this.options.supplied.toLowerCase().split(","),function(b,c){var e=c.replace(/^\s+|\s+$/g,"");if(d.format[e]){var f=!1;a.each(d.formats,function(a,d){return e===d?(f=!0,!1):void 0});f||d.formats.push(e)}}),a.each(this.options.solution.toLowerCase().split(","),function(b,c){var e=c.replace(/^\s+|\s+$/g,"");if(d.solution[e]){var f=!1;a.each(d.solutions,function(a,d){return e===d?(f=!0,!1):void 0});f||d.solutions.push(e)}}),a.each(this.options.auroraFormats.toLowerCase().split(","),
  function(b,c){var e=c.replace(/^\s+|\s+$/g,"");if(d.format[e]){var f=!1;a.each(d.aurora.formats,function(a,d){return e===d?(f=!0,!1):void 0});f||d.aurora.formats.push(e)}}),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=a.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=a.extend({},{id:this.options.idPrefix+"_audio_"+
  this.count,jq:g}),this.internal.video=a.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:g}),this.internal.flash=a.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:g,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"jquery.jplayer.swf":"")}),this.internal.poster=a.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:g}),a.each(a.jPlayer.event,function(a,b){d.options[a]!==
  g&&(d.element.bind(b+".jPlayer",d.options[a]),d.options[a]=g)}),this.require.audio=!1,this.require.video=!1,a.each(this.formats,function(a,b){d.require[d.format[b].media]=!0}),this.options=this.require.video?a.extend(!0,{},this.optionsVideo,this.options):a.extend(!0,{},this.optionsAudio,this.options),this._setSize(),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow),this.status.noVolume=this._uaBlocklist(this.options.noVolume),
  a.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled&&this._fullscreenAddEventListeners(),this._restrictNativeVideoControls(),this.htmlElement.poster=document.createElement("img"),this.htmlElement.poster.id=this.internal.poster.id,this.htmlElement.poster.onload=function(){d.status.video&&!d.status.waitForPlay||d.internal.poster.jq.show()},this.element.append(this.htmlElement.poster),this.internal.poster.jq=a("#"+this.internal.poster.id),this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),
  this.internal.poster.jq.hide(),this.internal.poster.jq.bind("click.jPlayer",function(){d._trigger(a.jPlayer.event.click)}),this.html.audio.available=!1,this.require.audio&&(this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id,this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)),this.html.video.available=!1,this.require.video&&(this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=
  this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)),this.flash.available=this._checkForFlash(10.1),this.html.canPlay={},this.aurora.canPlay={},this.flash.canPlay={},a.each(this.formats,function(b,c){d.html.canPlay[c]=d.html[d.format[c].media].available&&""!==d.htmlElement[d.format[c].media].canPlayType(d.format[c].codec);d.aurora.canPlay[c]=-1<a.inArray(c,d.aurora.formats);d.flash.canPlay[c]=d.format[c].flashCanPlay&&
  d.flash.available}),this.html.desired=!1,this.aurora.desired=!1,this.flash.desired=!1,a.each(this.solutions,function(b,c){if(0===b)d[c].desired=!0;else{var e=!1,f=!1;a.each(d.formats,function(a,b){d[d.solutions[0]].canPlay[b]&&("video"===d.format[b].media?f=!0:e=!0)});d[c].desired=d.require.audio&&!e||d.require.video&&!f}}),this.html.support={},this.aurora.support={},this.flash.support={},a.each(this.formats,function(a,b){d.html.support[b]=d.html.canPlay[b]&&d.html.desired;d.aurora.support[b]=d.aurora.canPlay[b]&&
  d.aurora.desired;d.flash.support[b]=d.flash.canPlay[b]&&d.flash.desired}),this.html.used=!1,this.aurora.used=!1,this.flash.used=!1,a.each(this.solutions,function(b,c){a.each(d.formats,function(a,b){return d[c].support[b]?(d[c].used=!0,!1):void 0})}),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.aurora.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:a.jPlayer.error.NO_SOLUTION,
  context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SOLUTION,hint:a.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var b,c="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(a.jPlayer.browser.msie&&(9>Number(a.jPlayer.browser.version)||9>a.jPlayer.browser.documentMode)){c=['<param name="movie" value="'+
  this.internal.flash.swf+'" />','<param name="FlashVars" value="'+c+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];b=document.createElement('<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>');for(var e=0;e<c.length;e++)b.appendChild(document.createElement(c[e]))}else e=function(a,
  b,d){var c=document.createElement("param");c.setAttribute("name",b);c.setAttribute("value",d);a.appendChild(c)},b=document.createElement("object"),b.setAttribute("id",this.internal.flash.id),b.setAttribute("name",this.internal.flash.id),b.setAttribute("data",this.internal.flash.swf),b.setAttribute("type","application/x-shockwave-flash"),b.setAttribute("width","1"),b.setAttribute("height","1"),b.setAttribute("tabindex","-1"),e(b,"flashvars",c),e(b,"allowscriptaccess","always"),e(b,"bgcolor",this.options.backgroundColor),
  e(b,"wmode",this.options.wmode);this.element.append(b);this.internal.flash.jq=a(b)}this.status.playbackRateEnabled=this.html.used&&!this.flash.used?this._testPlaybackRate("audio"):!1;this._updatePlaybackRate();this.html.used&&(this.html.audio.available&&(this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=a("#"+this.internal.audio.id)),this.html.video.available&&(this._addHtmlEventListeners(this.htmlElement.video,this.html.video),
  this.element.append(this.htmlElement.video),this.internal.video.jq=a("#"+this.internal.video.id),this.internal.video.jq.css(this.status.nativeVideoControls?{width:this.status.width,height:this.status.height}:{width:"0px",height:"0px"}),this.internal.video.jq.bind("click.jPlayer",function(){d._trigger(a.jPlayer.event.click)})));this.aurora.used;this.options.emulateHtml&&this._emulateHtmlBridge();!this.html.used&&!this.aurora.used||this.flash.used||setTimeout(function(){d.internal.ready=!0;d.version.flash=
  "n/a";d._trigger(a.jPlayer.event.repeat);d._trigger(a.jPlayer.event.ready)},100);this._updateNativeVideoControls();this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide();a.jPlayer.prototype.count++},destroy:function(){this.clearMedia();this._removeUiClass();this.css.jq.currentTime.length&&this.css.jq.currentTime.text("");this.css.jq.duration.length&&this.css.jq.duration.text("");a.each(this.css.jq,function(a,b){b.length&&b.unbind(".jPlayer")});this.internal.poster.jq.unbind(".jPlayer");this.internal.video.jq&&
  this.internal.video.jq.unbind(".jPlayer");this._fullscreenRemoveEventListeners();this===a.jPlayer.focus&&(a.jPlayer.focus=null);this.options.emulateHtml&&this._destroyHtmlBridge();this.element.removeData("jPlayer");this.element.unbind(".jPlayer");this.element.empty();delete this.instances[this.internal.instance]},destroyRemoved:function(){var b=this;a.each(this.instances,function(a,c){b.element!==c&&(c.data("jPlayer")||(c.jPlayer("destroy"),delete b.instances[a]))})},enable:function(){},disable:function(){},
  _testCanPlayType:function(a){try{return a.canPlayType(this.format.mp3.codec),!0}catch(b){return!1}},_testPlaybackRate:function(a){a=document.createElement("string"==typeof a?a:"audio");try{return"playbackRate"in a?(a.playbackRate=.5,.5===a.playbackRate):!1}catch(b){return!1}},_uaBlocklist:function(b){var c=navigator.userAgent.toLowerCase(),e=!1;return a.each(b,function(a,b){return b&&b.test(c)?(e=!0,!1):void 0}),e},_restrictNativeVideoControls:function(){this.require.audio&&this.status.nativeVideoControls&&
  (this.status.nativeVideoControls=!1,this.status.noFullWindow=!0)},_updateNativeVideoControls:function(){this.html.video.available&&this.html.used&&(this.htmlElement.video.controls=this.status.nativeVideoControls,this._updateAutohide(),this.status.nativeVideoControls&&this.require.video?(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})):this.status.waitForPlay&&this.status.video&&(this.internal.poster.jq.show(),this.internal.video.jq.css({width:"0px",
  height:"0px"})))},_addHtmlEventListeners:function(b,c){var e=this;b.preload=this.options.preload;b.muted=this.options.muted;b.volume=this.options.volume;this.status.playbackRateEnabled&&(b.defaultPlaybackRate=this.options.defaultPlaybackRate,b.playbackRate=this.options.playbackRate);b.addEventListener("progress",function(){c.gate&&(e.internal.cmdsIgnored&&0<this.readyState&&(e.internal.cmdsIgnored=!1),e._getHtmlStatus(b),e._updateInterface(),e._trigger(a.jPlayer.event.progress))},!1);b.addEventListener("loadeddata",
  function(){c.gate&&(e.androidFix.setMedia=!1,e.androidFix.play&&(e.androidFix.play=!1,e.play(e.androidFix.time)),e.androidFix.pause&&(e.androidFix.pause=!1,e.pause(e.androidFix.time)),e._trigger(a.jPlayer.event.loadeddata))},!1);b.addEventListener("timeupdate",function(){c.gate&&(e._getHtmlStatus(b),e._updateInterface(),e._trigger(a.jPlayer.event.timeupdate))},!1);b.addEventListener("durationchange",function(){c.gate&&(e._getHtmlStatus(b),e._updateInterface(),e._trigger(a.jPlayer.event.durationchange))},
  !1);b.addEventListener("play",function(){c.gate&&(e._updateButtons(!0),e._html_checkWaitForPlay(),e._trigger(a.jPlayer.event.play))},!1);b.addEventListener("playing",function(){c.gate&&(e._updateButtons(!0),e._seeked(),e._trigger(a.jPlayer.event.playing))},!1);b.addEventListener("pause",function(){c.gate&&(e._updateButtons(!1),e._trigger(a.jPlayer.event.pause))},!1);b.addEventListener("waiting",function(){c.gate&&(e._seeking(),e._trigger(a.jPlayer.event.waiting))},!1);b.addEventListener("seeking",
  function(){c.gate&&(e._seeking(),e._trigger(a.jPlayer.event.seeking))},!1);b.addEventListener("seeked",function(){c.gate&&(e._seeked(),e._trigger(a.jPlayer.event.seeked))},!1);b.addEventListener("volumechange",function(){c.gate&&(e.options.volume=b.volume,e.options.muted=b.muted,e._updateMute(),e._updateVolume(),e._trigger(a.jPlayer.event.volumechange))},!1);b.addEventListener("ratechange",function(){c.gate&&(e.options.defaultPlaybackRate=b.defaultPlaybackRate,e.options.playbackRate=b.playbackRate,
  e._updatePlaybackRate(),e._trigger(a.jPlayer.event.ratechange))},!1);b.addEventListener("suspend",function(){c.gate&&(e._seeked(),e._trigger(a.jPlayer.event.suspend))},!1);b.addEventListener("ended",function(){c.gate&&(a.jPlayer.browser.webkit||(e.htmlElement.media.currentTime=0),e.htmlElement.media.pause(),e._updateButtons(!1),e._getHtmlStatus(b,!0),e._updateInterface(),e._trigger(a.jPlayer.event.ended))},!1);b.addEventListener("error",function(){c.gate&&(e._updateButtons(!1),e._seeked(),e.status.srcSet&&
  (clearTimeout(e.internal.htmlDlyCmdId),e.status.waitForLoad=!0,e.status.waitForPlay=!0,e.status.video&&!e.status.nativeVideoControls&&e.internal.video.jq.css({width:"0px",height:"0px"}),e._validString(e.status.media.poster)&&!e.status.nativeVideoControls&&e.internal.poster.jq.show(),e.css.jq.videoPlay.length&&e.css.jq.videoPlay.show(),e._error({type:a.jPlayer.error.URL,context:e.status.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL})))},!1);a.each(a.jPlayer.htmlEvent,function(f,g){b.addEventListener(this,
  function(){c.gate&&e._trigger(a.jPlayer.event[g])},!1)})},_addAuroraEventListeners:function(b,c){var e=this;b.volume=100*this.options.volume;b.on("progress",function(){c.gate&&(e.internal.cmdsIgnored&&0<this.readyState&&(e.internal.cmdsIgnored=!1),e._getAuroraStatus(b),e._updateInterface(),e._trigger(a.jPlayer.event.progress),0<b.duration&&e._trigger(a.jPlayer.event.timeupdate))},!1);b.on("ready",function(){c.gate&&e._trigger(a.jPlayer.event.loadeddata)},!1);b.on("duration",function(){c.gate&&(e._getAuroraStatus(b),
  e._updateInterface(),e._trigger(a.jPlayer.event.durationchange))},!1);b.on("end",function(){c.gate&&(e._updateButtons(!1),e._getAuroraStatus(b,!0),e._updateInterface(),e._trigger(a.jPlayer.event.ended))},!1);b.on("error",function(){c.gate&&(e._updateButtons(!1),e._seeked(),e.status.srcSet&&(e.status.waitForLoad=!0,e.status.waitForPlay=!0,e.status.video&&!e.status.nativeVideoControls&&e.internal.video.jq.css({width:"0px",height:"0px"}),e._validString(e.status.media.poster)&&!e.status.nativeVideoControls&&
  e.internal.poster.jq.show(),e.css.jq.videoPlay.length&&e.css.jq.videoPlay.show(),e._error({type:a.jPlayer.error.URL,context:e.status.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL})))},!1)},_getHtmlStatus:function(a,b){var c,e,f=0,g=0;isFinite(a.duration)&&(this.status.duration=a.duration);c=a.currentTime;e=0<this.status.duration?100*c/this.status.duration:0;"object"==typeof a.seekable&&0<a.seekable.length?(f=0<this.status.duration?100*a.seekable.end(a.seekable.length-1)/this.status.duration:
  100,g=0<this.status.duration?100*a.currentTime/a.seekable.end(a.seekable.length-1):0):(f=100,g=e);b&&(c=0,g=0,e=0);this.status.seekPercent=f;this.status.currentPercentRelative=g;this.status.currentPercentAbsolute=e;this.status.currentTime=c;this.status.remaining=this.status.duration-this.status.currentTime;this.status.videoWidth=a.videoWidth;this.status.videoHeight=a.videoHeight;this.status.readyState=a.readyState;this.status.networkState=a.networkState;this.status.playbackRate=a.playbackRate;this.status.ended=
  a.ended},_getAuroraStatus:function(a,b){var c,e,f=0,g=0;this.status.duration=a.duration/1E3;c=a.currentTime/1E3;e=0<this.status.duration?100*c/this.status.duration:0;0<a.buffered?(f=0<this.status.duration?a.buffered*this.status.duration/this.status.duration:100,g=0<this.status.duration?c/(a.buffered*this.status.duration):0):(f=100,g=e);b&&(c=0,g=0,e=0);this.status.seekPercent=f;this.status.currentPercentRelative=g;this.status.currentPercentAbsolute=e;this.status.currentTime=c;this.status.remaining=
  this.status.duration-this.status.currentTime;this.status.readyState=4;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=!1},_resetStatus:function(){this.status=a.extend({},this.status,a.jPlayer.prototype.status)},_trigger:function(b,c,e){b=a.Event(b);b.jPlayer={};b.jPlayer.version=a.extend({},this.version);b.jPlayer.options=a.extend(!0,{},this.options);b.jPlayer.status=a.extend(!0,{},this.status);b.jPlayer.html=a.extend(!0,{},this.html);b.jPlayer.aurora=a.extend(!0,{},this.aurora);
  b.jPlayer.flash=a.extend(!0,{},this.flash);c&&(b.jPlayer.error=a.extend({},c));e&&(b.jPlayer.warning=a.extend({},e));this.element.trigger(b)},jPlayerFlashEvent:function(b,c){if(b===a.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var e=this.status.currentTime,f=this.status.paused;this.setMedia(this.status.media);this.volumeWorker(this.options.volume);0<e&&(f?this.pause(e):this.play(e))}this._trigger(a.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",
  height:"0px"}),this.version.flash=c.version,this.version.needFlash!==this.version.flash&&this._error({type:a.jPlayer.error.VERSION,context:this.version.flash,message:a.jPlayer.errorMsg.VERSION+this.version.flash,hint:a.jPlayer.errorHint.VERSION}),this._trigger(a.jPlayer.event.repeat),this._trigger(b);if(this.flash.gate)switch(b){case a.jPlayer.event.progress:this._getFlashStatus(c);this._updateInterface();this._trigger(b);break;case a.jPlayer.event.timeupdate:this._getFlashStatus(c);this._updateInterface();
  this._trigger(b);break;case a.jPlayer.event.play:this._seeked();this._updateButtons(!0);this._trigger(b);break;case a.jPlayer.event.pause:this._updateButtons(!1);this._trigger(b);break;case a.jPlayer.event.ended:this._updateButtons(!1);this._trigger(b);break;case a.jPlayer.event.click:this._trigger(b);break;case a.jPlayer.event.error:this.status.waitForLoad=!0;this.status.waitForPlay=!0;this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"});this._validString(this.status.media.poster)&&
  this.internal.poster.jq.show();this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show();this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media);this._updateButtons(!1);this._error({type:a.jPlayer.error.URL,context:c.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL});break;case a.jPlayer.event.seeking:this._seeking();this._trigger(b);break;case a.jPlayer.event.seeked:this._seeked();this._trigger(b);break;case a.jPlayer.event.ready:break;
  default:this._trigger(b)}return!1},_getFlashStatus:function(a){this.status.seekPercent=a.seekPercent;this.status.currentPercentRelative=a.currentPercentRelative;this.status.currentPercentAbsolute=a.currentPercentAbsolute;this.status.currentTime=a.currentTime;this.status.duration=a.duration;this.status.remaining=a.duration-a.currentTime;this.status.videoWidth=a.videoWidth;this.status.videoHeight=a.videoHeight;this.status.readyState=4;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=
  !1},_updateButtons:function(a){a===g?a=!this.status.paused:this.status.paused=!a;a?this.addStateClass("playing"):this.removeStateClass("playing");!this.status.noFullWindow&&this.options.fullWindow?this.addStateClass("fullScreen"):this.removeStateClass("fullScreen");this.options.loop?this.addStateClass("looped"):this.removeStateClass("looped");this.css.jq.play.length&&this.css.jq.pause.length&&(a?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide()));
  this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullWindow?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide()));this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},
  _updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%");this.css.jq.playBar.length&&(this.options.smoothPlayBar?this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear"):this.css.jq.playBar.width(this.status.currentPercentRelative+"%"));var a="";this.css.jq.currentTime.length&&(a=this._convertTime(this.status.currentTime),a!==this.css.jq.currentTime.text()&&this.css.jq.currentTime.text(this._convertTime(this.status.currentTime)));
  var a="",b=this.status.duration,c=this.status.remaining;this.css.jq.duration.length&&("string"==typeof this.status.media.duration?a=this.status.media.duration:("number"==typeof this.status.media.duration&&(b=this.status.media.duration,c=b-this.status.currentTime),a=this.options.remainingDuration?(0<c?"-":"")+this._convertTime(c):this._convertTime(b)),a!==this.css.jq.duration.text()&&this.css.jq.duration.text(a))},_convertTime:f.prototype.time,_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg");
  this.addStateClass("seeking")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg");this.removeStateClass("seeking")},_resetGate:function(){this.html.audio.gate=!1;this.html.video.gate=!1;this.aurora.gate=!1;this.flash.gate=!1},_resetActive:function(){this.html.active=!1;this.aurora.active=!1;this.flash.active=!1},_escapeHtml:function(a){return a.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")},_qualifyURL:function(a){var b=
  document.createElement("div");return b.innerHTML='<a href="'+this._escapeHtml(a)+'">x</a>',b.firstChild.href},_absoluteMediaUrls:function(b){var c=this;return a.each(b,function(a,e){e&&c.format[a]&&"data:"!==e.substr(0,5)&&(b[a]=c._qualifyURL(e))}),b},addStateClass:function(a){this.ancestorJq.length&&this.ancestorJq.addClass(this.options.stateClass[a])},removeStateClass:function(a){this.ancestorJq.length&&this.ancestorJq.removeClass(this.options.stateClass[a])},setMedia:function(b){var c=this,e=!1,
  f=this.status.media.poster!==b.poster;this._resetMedia();this._resetGate();this._resetActive();this.androidFix.setMedia=!1;this.androidFix.play=!1;this.androidFix.pause=!1;b=this._absoluteMediaUrls(b);a.each(this.formats,function(f,g){var m="video"===c.format[g].media;return a.each(c.solutions,function(f,l){if(c[l].support[g]&&c._validString(b[g])){var x="html"===l,u="aurora"===l;return m?(x?(c.html.video.gate=!0,c._html_setVideo(b),c.html.active=!0):(c.flash.gate=!0,c._flash_setVideo(b),c.flash.active=
  !0),c.css.jq.videoPlay.length&&c.css.jq.videoPlay.show(),c.status.video=!0):(x?(c.html.audio.gate=!0,c._html_setAudio(b),c.html.active=!0,a.jPlayer.platform.android&&(c.androidFix.setMedia=!0)):u?(c.aurora.gate=!0,c._aurora_setAudio(b),c.aurora.active=!0):(c.flash.gate=!0,c._flash_setAudio(b),c.flash.active=!0),c.css.jq.videoPlay.length&&c.css.jq.videoPlay.hide(),c.status.video=!1),e=!0,!1}}),e?!1:void 0});e?(this.status.nativeVideoControls&&this.html.video.gate||this._validString(b.poster)&&(f?this.htmlElement.poster.src=
  b.poster:this.internal.poster.jq.show()),"string"==typeof b.title&&(this.css.jq.title.length&&this.css.jq.title.html(b.title),this.htmlElement.audio&&this.htmlElement.audio.setAttribute("title",b.title),this.htmlElement.video&&this.htmlElement.video.setAttribute("title",b.title)),this.status.srcSet=!0,this.status.media=a.extend({},b),this._updateButtons(!1),this._updateInterface(),this._trigger(a.jPlayer.event.setmedia)):this._error({type:a.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+
  "'}",message:a.jPlayer.errorMsg.NO_SUPPORT,hint:a.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus();this._updateButtons(!1);this._updateInterface();this._seeked();this.internal.poster.jq.hide();clearTimeout(this.internal.htmlDlyCmdId);this.html.active?this._html_resetMedia():this.aurora.active?this._aurora_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia();this.html.active?this._html_clearMedia():this.aurora.active?this._aurora_clearMedia():
  this.flash.active&&this._flash_clearMedia();this._resetGate();this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.aurora.active?this._aurora_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(a.jPlayer.focus=this)},play:function(a){"object"==typeof a&&this.options.useStateClassSkin&&!this.status.paused?this.pause(a):(a="number"==typeof a?a:0/0,this.status.srcSet?(this.focus(),this.html.active?
  this._html_play(a):this.aurora.active?this._aurora_play(a):this.flash.active&&this._flash_play(a)):this._urlNotSetError("play"))},videoPlay:function(){this.play()},pause:function(a){a="number"==typeof a?a:0/0;this.status.srcSet?this.html.active?this._html_pause(a):this.aurora.active?this._aurora_pause(a):this.flash.active&&this._flash_pause(a):this._urlNotSetError("pause")},tellOthers:function(b,c){var e=this,f="function"==typeof c,g=Array.prototype.slice.call(arguments);"string"==typeof b&&(f&&g.splice(1,
  1),a.jPlayer.prototype.destroyRemoved(),a.each(this.instances,function(){e.element===this||f&&!c.call(this.data("jPlayer"),e)||this.jPlayer.apply(this,g)}))},pauseOthers:function(a){this.tellOthers("pause",function(){return this.status.srcSet},a)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.aurora.active?this._aurora_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(a){a=this._limitValue(a,0,100);this.status.srcSet?this.html.active?
  this._html_playHead(a):this.aurora.active?this._aurora_playHead(a):this.flash.active&&this._flash_playHead(a):this._urlNotSetError("playHead")},_muted:function(a){this.mutedWorker(a);this.options.globalVolume&&this.tellOthers("mutedWorker",function(){return this.options.globalVolume},a)},mutedWorker:function(b){this.options.muted=b;this.html.used&&this._html_setProperty("muted",b);this.aurora.used&&this._aurora_mute(b);this.flash.used&&this._flash_mute(b);this.html.video.gate||this.html.audio.gate||
  (this._updateMute(b),this._updateVolume(this.options.volume),this._trigger(a.jPlayer.event.volumechange))},mute:function(a){"object"==typeof a&&this.options.useStateClassSkin&&this.options.muted?this._muted(!1):(a=a===g?!0:!!a,this._muted(a))},unmute:function(a){a=a===g?!0:!!a;this._muted(!a)},_updateMute:function(a){a===g&&(a=this.options.muted);a?this.addStateClass("muted"):this.removeStateClass("muted");this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),
  this.css.jq.unmute.hide()):a?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(a){this.volumeWorker(a);this.options.globalVolume&&this.tellOthers("volumeWorker",function(){return this.options.globalVolume},a)},volumeWorker:function(b){b=this._limitValue(b,0,1);this.options.volume=b;this.html.used&&this._html_setProperty("volume",b);this.aurora.used&&this._aurora_volume(b);this.flash.used&&this._flash_volume(b);this.html.video.gate||
  this.html.audio.gate||(this._updateVolume(b),this._trigger(a.jPlayer.event.volumechange))},volumeBar:function(b){if(this.css.jq.volumeBar.length){var c=a(b.currentTarget),e=c.offset(),f=b.pageX-e.left,g=c.width();b=c.height()-b.pageY+e.top;c=c.height();this.volume(this.options.verticalVolume?b/c:f/g)}this.options.muted&&this._muted(!1)},_updateVolume:function(a){a===g&&(a=this.options.volume);a=this.options.muted?0:a;this.status.noVolume?(this.addStateClass("noVolume"),this.css.jq.volumeBar.length&&
  this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.removeStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*a+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1);
  this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(b){var c=this;this.options.cssSelectorAncestor=b;this._removeUiClass();this.ancestorJq=b?a(b):[];b&&1!==this.ancestorJq.length&&this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:b,message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT});this._addUiClass();a.each(this.options.cssSelector,function(a,b){c._cssSelector(a,b)});
  this._updateInterface();this._updateButtons();this._updateAutohide();this._updateVolume();this._updateMute()},_cssSelector:function(b,c){var e=this;"string"==typeof c?a.jPlayer.prototype.options.cssSelector[b]?((this.css.jq[b]&&this.css.jq[b].length&&this.css.jq[b].unbind(".jPlayer"),this.options.cssSelector[b]=c,this.css.cs[b]=this.options.cssSelectorAncestor+" "+c,this.css.jq[b]=c?a(this.css.cs[b]):[],this.css.jq[b].length&&this[b])&&this.css.jq[b].bind("click.jPlayer",function(c){c.preventDefault();
  e[b](c);e.options.autoBlur?a(this).blur():a(this).focus()}),c&&1!==this.css.jq[b].length&&this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[b],message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[b].length+" found for "+b+" method.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:a.jPlayer.warning.CSS_SELECTOR_METHOD,context:b,message:a.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:a.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:a.jPlayer.warning.CSS_SELECTOR_STRING,
  context:c,message:a.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:a.jPlayer.warningHint.CSS_SELECTOR_STRING})},duration:function(a){this.options.toggleDuration&&(this.options.captureDuration&&a.stopPropagation(),this._setOption("remainingDuration",!this.options.remainingDuration))},seekBar:function(b){if(this.css.jq.seekBar.length){var c=a(b.currentTarget),e=c.offset();b=b.pageX-e.left;c=c.width();this.playHead(100*b/c)}},playbackRate:function(a){this._setOption("playbackRate",a)},playbackRateBar:function(b){if(this.css.jq.playbackRateBar.length){var c=
  a(b.currentTarget),e=c.offset(),f=b.pageX-e.left,g=c.width();b=c.height()-b.pageY+e.top;c=c.height();this.playbackRate((this.options.verticalPlaybackRate?b/c:f/g)*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate)}},_updatePlaybackRate:function(){var a=(this.options.playbackRate-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),
  this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*a+"%"))):(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(a){this._loop("object"==typeof a&&this.options.useStateClassSkin&&this.options.loop?!1:!0)},repeatOff:function(){this._loop(!1)},_loop:function(b){this.options.loop!==
  b&&(this.options.loop=b,this._updateButtons(),this._trigger(a.jPlayer.event.repeat))},option:function(b,c){var e=b;if(0===arguments.length)return a.extend(!0,{},this.options);if("string"==typeof b){var f=b.split(".");if(c===g){for(var e=a.extend(!0,{},this.options),l=0;l<f.length;l++){if(e[f[l]]===g)return this._warning({type:a.jPlayer.warning.OPTION_KEY,context:b,message:a.jPlayer.warningMsg.OPTION_KEY,hint:a.jPlayer.warningHint.OPTION_KEY}),g;e=e[f[l]]}return e}for(var l=e={},p=0;p<f.length;p++)p<
  f.length-1?(l[f[p]]={},l=l[f[p]]):l[f[p]]=c}return this._setOptions(e),this},_setOptions:function(b){var c=this;return a.each(b,function(a,b){c._setOption(a,b)}),this},_setOption:function(b,c){var e=this;switch(b){case "volume":this.volume(c);break;case "muted":this._muted(c);break;case "globalVolume":this.options[b]=c;break;case "cssSelectorAncestor":this._cssSelectorAncestor(c);break;case "cssSelector":a.each(c,function(a,b){e._cssSelector(a,b)});break;case "playbackRate":this.options[b]=c=this._limitValue(c,
  this.options.minPlaybackRate,this.options.maxPlaybackRate);this.html.used&&this._html_setProperty("playbackRate",c);this._updatePlaybackRate();break;case "defaultPlaybackRate":this.options[b]=c=this._limitValue(c,this.options.minPlaybackRate,this.options.maxPlaybackRate);this.html.used&&this._html_setProperty("defaultPlaybackRate",c);this._updatePlaybackRate();break;case "minPlaybackRate":this.options[b]=c=this._limitValue(c,.1,this.options.maxPlaybackRate-.1);this._updatePlaybackRate();break;case "maxPlaybackRate":this.options[b]=
  c=this._limitValue(c,this.options.minPlaybackRate+.1,16);this._updatePlaybackRate();break;case "fullScreen":if(this.options[b]!==c){var f=a.jPlayer.nativeFeatures.fullscreen.used.webkitVideo;(!f||f&&!this.status.waitForPlay)&&(f||(this.options[b]=c),c?this._requestFullscreen():this._exitFullscreen(),f||this._setOption("fullWindow",c))}break;case "fullWindow":this.options[b]!==c&&(this._removeUiClass(),this.options[b]=c,this._refreshSize());break;case "size":this.options.fullWindow||this.options[b].cssClass===
  c.cssClass||this._removeUiClass();this.options[b]=a.extend({},this.options[b],c);this._refreshSize();break;case "sizeFull":this.options.fullWindow&&this.options[b].cssClass!==c.cssClass&&this._removeUiClass();this.options[b]=a.extend({},this.options[b],c);this._refreshSize();break;case "autohide":this.options[b]=a.extend({},this.options[b],c);this._updateAutohide();break;case "loop":this._loop(c);break;case "remainingDuration":this.options[b]=c;this._updateInterface();break;case "toggleDuration":this.options[b]=
  c;break;case "nativeVideoControls":this.options[b]=a.extend({},this.options[b],c);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this._restrictNativeVideoControls();this._updateNativeVideoControls();break;case "noFullWindow":this.options[b]=a.extend({},this.options[b],c);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow);this._restrictNativeVideoControls();this._updateButtons();
  break;case "noVolume":this.options[b]=a.extend({},this.options[b],c);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._updateVolume();this._updateMute();break;case "emulateHtml":this.options[b]!==c&&(this.options[b]=c,c?this._emulateHtmlBridge():this._destroyHtmlBridge());break;case "timeFormat":this.options[b]=a.extend({},this.options[b],c);break;case "keyEnabled":(this.options[b]=c)||this!==a.jPlayer.focus||(a.jPlayer.focus=null);break;case "keyBindings":this.options[b]=a.extend(!0,
  {},this.options[b],c);break;case "audioFullScreen":this.options[b]=c;break;case "autoBlur":this.options[b]=c}return this},_refreshSize:function(){this._setSize();this._addUiClass();this._updateSize();this._updateButtons();this._updateAutohide();this._trigger(a.jPlayer.event.resize)},_setSize:function(){this.options.fullWindow?(this.status.width=this.options.sizeFull.width,this.status.height=this.options.sizeFull.height,this.status.cssClass=this.options.sizeFull.cssClass):(this.status.width=this.options.size.width,
  this.status.height=this.options.size.height,this.status.cssClass=this.options.size.cssClass);this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&this.ancestorJq.removeClass(this.status.cssClass)},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height});!this.status.waitForPlay&&this.html.active&&
  this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):!this.status.waitForPlay&&this.flash.active&&this.status.video&&this.internal.flash.jq.css({width:this.status.width,height:this.status.height})},_updateAutohide:function(){var a=this,b=function(b){var c,e,f=!1;"undefined"!=typeof a.internal.mouse?(c=a.internal.mouse.x-b.pageX,e=a.internal.mouse.y-b.pageY,f=0<Math.floor(c)||0<
  Math.floor(e)):f=!0;a.internal.mouse={x:b.pageX,y:b.pageY};f&&a.css.jq.gui.fadeIn(a.options.autohide.fadeIn,function(){clearTimeout(a.internal.autohideId);a.internal.autohideId=setTimeout(function(){a.css.jq.gui.fadeOut(a.options.autohide.fadeOut)},a.options.autohide.hold)})};this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),delete this.internal.mouse,this.element.unbind(".jPlayerAutohide"),this.css.jq.gui.unbind(".jPlayerAutohide"),this.status.nativeVideoControls?
  this.css.jq.gui.hide():this.options.fullWindow&&this.options.autohide.full||!this.options.fullWindow&&this.options.autohide.restored?(this.element.bind("mousemove.jPlayer.jPlayerAutohide",b),this.css.jq.gui.bind("mousemove.jPlayer.jPlayerAutohide",b),this.css.jq.gui.hide()):this.css.jq.gui.show())},fullScreen:function(a){"object"==typeof a&&this.options.useStateClassSkin&&this.options.fullScreen?this._setOption("fullScreen",!1):this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",
  !1)},_fullscreenAddEventListeners:function(){var b=this,c=a.jPlayer.nativeFeatures.fullscreen;c.api.fullscreenEnabled&&c.event.fullscreenchange&&("function"!=typeof this.internal.fullscreenchangeHandler&&(this.internal.fullscreenchangeHandler=function(){b._fullscreenchange()}),document.addEventListener(c.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1))},_fullscreenRemoveEventListeners:function(){var b=a.jPlayer.nativeFeatures.fullscreen;this.internal.fullscreenchangeHandler&&document.removeEventListener(b.event.fullscreenchange,
  this.internal.fullscreenchangeHandler,!1)},_fullscreenchange:function(){this.options.fullScreen&&!a.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()&&this._setOption("fullScreen",!1)},_requestFullscreen:function(){var b=this.ancestorJq.length?this.ancestorJq[0]:this.element[0],c=a.jPlayer.nativeFeatures.fullscreen;c.used.webkitVideo&&(b=this.htmlElement.video);c.api.fullscreenEnabled&&c.api.requestFullscreen(b)},_exitFullscreen:function(){var b,c=a.jPlayer.nativeFeatures.fullscreen;c.used.webkitVideo&&
  (b=this.htmlElement.video);c.api.fullscreenEnabled&&c.api.exitFullscreen(b)},_html_initMedia:function(b){var c=a(this.htmlElement.media).empty();a.each(b.track||[],function(a,b){var d=document.createElement("track");d.setAttribute("kind",b.kind?b.kind:"");d.setAttribute("src",b.src?b.src:"");d.setAttribute("srclang",b.srclang?b.srclang:"");d.setAttribute("label",b.label?b.label:"");b.def&&d.setAttribute("default",b.def);c.append(d)});this.htmlElement.media.src=this.status.src;"none"!==this.options.preload&&
  this._html_load();this._trigger(a.jPlayer.event.timeupdate)},_html_setFormat:function(b){var c=this;a.each(this.formats,function(a,e){return c.html.support[e]&&b[e]?(c.status.src=b[e],c.status.format[e]=!0,c.status.formatType=e,!1):void 0})},_html_setAudio:function(a){this._html_setFormat(a);this.htmlElement.media=this.htmlElement.audio;this._html_initMedia(a)},_html_setVideo:function(a){this._html_setFormat(a);this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(a.poster)?
  a.poster:"");this.htmlElement.media=this.htmlElement.video;this._html_initMedia(a)},_html_resetMedia:function(){this.htmlElement.media&&(this.htmlElement.media.id!==this.internal.video.id||this.status.nativeVideoControls||this.internal.video.jq.css({width:"0px",height:"0px"}),this.htmlElement.media.pause())},_html_clearMedia:function(){this.htmlElement.media&&(this.htmlElement.media.src="about:blank",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=
  !1,this.htmlElement.media.load());clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(a){var b=this,c=this.htmlElement.media;if(this.androidFix.pause=!1,this._html_load(),this.androidFix.setMedia)this.androidFix.play=!0,this.androidFix.time=a;else if(isNaN(a))c.play();else{this.internal.cmdsIgnored&&c.play();try{if(c.seekable&&!("object"==typeof c.seekable&&0<c.seekable.length))throw 1;c.currentTime=a;c.play()}catch(e){return void(this.internal.htmlDlyCmdId=setTimeout(function(){b.play(a)},
  250))}}this._html_checkWaitForPlay()},_html_pause:function(a){var b=this,c=this.htmlElement.media;if(this.androidFix.play=!1,0<a?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),c.pause(),this.androidFix.setMedia)this.androidFix.pause=!0,this.androidFix.time=a;else if(!isNaN(a))try{if(c.seekable&&!("object"==typeof c.seekable&&0<c.seekable.length))throw 1;c.currentTime=a}catch(e){return void(this.internal.htmlDlyCmdId=setTimeout(function(){b.pause(a)},250))}0<a&&this._html_checkWaitForPlay()},
  _html_playHead:function(a){var b=this,c=this.htmlElement.media;this._html_load();try{if("object"==typeof c.seekable&&0<c.seekable.length)c.currentTime=a*c.seekable.end(c.seekable.length-1)/100;else{if(!(0<c.duration)||isNaN(c.duration))throw"e";c.currentTime=a*c.duration/100}}catch(e){return void(this.internal.htmlDlyCmdId=setTimeout(function(){b.playHead(a)},250))}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=
  !1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))},_html_setProperty:function(a,b){this.html.audio.available&&(this.htmlElement.audio[a]=b);this.html.video.available&&(this.htmlElement.video[a]=b)},_aurora_setAudio:function(b){var c=this;a.each(this.formats,function(a,e){return c.aurora.support[e]&&b[e]?(c.status.src=b[e],c.status.format[e]=!0,c.status.formatType=
  e,!1):void 0});this.aurora.player=new AV.Player.fromURL(this.status.src);this._addAuroraEventListeners(this.aurora.player,this.aurora);"auto"===this.options.preload&&(this._aurora_load(),this.status.waitForLoad=!1)},_aurora_resetMedia:function(){this.aurora.player&&this.aurora.player.stop()},_aurora_clearMedia:function(){},_aurora_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.aurora.player.preload())},_aurora_play:function(b){this.status.waitForLoad||isNaN(b)||this.aurora.player.seek(b);
  this.aurora.player.playing||this.aurora.player.play();this.status.waitForLoad=!1;this._aurora_checkWaitForPlay();this._updateButtons(!0);this._trigger(a.jPlayer.event.play)},_aurora_pause:function(b){isNaN(b)||this.aurora.player.seek(1E3*b);this.aurora.player.pause();0<b&&this._aurora_checkWaitForPlay();this._updateButtons(!1);this._trigger(a.jPlayer.event.pause)},_aurora_playHead:function(a){0<this.aurora.player.duration&&this.aurora.player.seek(a*this.aurora.player.duration/100);this.status.waitForLoad||
  this._aurora_checkWaitForPlay()},_aurora_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1)},_aurora_volume:function(a){this.aurora.player.volume=100*a},_aurora_mute:function(a){a?(this.aurora.properties.lastvolume=this.aurora.player.volume,this.aurora.player.volume=0):this.aurora.player.volume=this.aurora.properties.lastvolume;this.aurora.properties.muted=a},_flash_setAudio:function(b){var c=this;try{a.each(this.formats,function(a,e){if(c.flash.support[e]&&b[e]){switch(e){case "m4a":case "fla":c._getMovie().fl_setAudio_m4a(b[e]);
  break;case "mp3":c._getMovie().fl_setAudio_mp3(b[e]);break;case "rtmpa":c._getMovie().fl_setAudio_rtmp(b[e])}return c.status.src=b[e],c.status.format[e]=!0,c.status.formatType=e,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(e){this._flashError(e)}},_flash_setVideo:function(b){var c=this;try{a.each(this.formats,function(a,e){if(c.flash.support[e]&&b[e]){switch(e){case "m4v":case "flv":c._getMovie().fl_setVideo_m4v(b[e]);break;case "rtmpv":c._getMovie().fl_setVideo_rtmp(b[e])}return c.status.src=
  b[e],c.status.format[e]=!0,c.status.formatType=e,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(e){this._flashError(e)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"});this._flash_pause(0/0)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(a){this._flashError(a)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(a){this._flashError(a)}this.status.waitForLoad=!1},_flash_play:function(a){try{this._getMovie().fl_play(a)}catch(b){this._flashError(b)}this.status.waitForLoad=
  !1;this._flash_checkWaitForPlay()},_flash_pause:function(a){try{this._getMovie().fl_pause(a)}catch(b){this._flashError(b)}0<a&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(a){try{this._getMovie().fl_play_head(a)}catch(b){this._flashError(b)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&
  (this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))},_flash_volume:function(a){try{this._getMovie().fl_volume(a)}catch(b){this._flashError(b)}},_flash_mute:function(a){try{this._getMovie().fl_mute(a)}catch(b){this._flashError(b)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var a,b=0;if(window.ActiveXObject)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");var c=a.GetVariable("$version");
  c&&(c=c.split(" ")[1].split(","),b=parseInt(c[0],10)+"."+parseInt(c[1],10))}catch(e){}else navigator.plugins&&0<navigator.mimeTypes.length&&(a=navigator.plugins["Shockwave Flash"],a&&(b=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")));return 1*b},_checkForFlash:function(a){var b=!1;return this._getFlashPluginVersion()>=a&&(b=!0),b},_validString:function(a){return a&&"string"==typeof a},_limitValue:function(a,b,c){return b>a?b:a>c?c:a},_urlNotSetError:function(b){this._error({type:a.jPlayer.error.URL_NOT_SET,
  context:b,message:a.jPlayer.errorMsg.URL_NOT_SET,hint:a.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(b){var c;c=this.internal.ready?"FLASH_DISABLED":"FLASH";this._error({type:a.jPlayer.error[c],context:this.internal.flash.swf,message:a.jPlayer.errorMsg[c]+b.message,hint:a.jPlayer.errorHint[c]});this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(b){this._trigger(a.jPlayer.event.error,b);this.options.errorAlerts&&this._alert("Error!"+(b.message?"\n"+b.message:"")+(b.hint?
  "\n"+b.hint:"")+"\nContext: "+b.context)},_warning:function(b){this._trigger(a.jPlayer.event.warning,g,b);this.options.warningAlerts&&this._alert("Warning!"+(b.message?"\n"+b.message:"")+(b.hint?"\n"+b.hint:"")+"\nContext: "+b.context)},_alert:function(a){a="jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+a;this.options.consoleAlerts?window.console&&window.console.log&&window.console.log(a):alert(a)},_emulateHtmlBridge:function(){var b=this;a.each(a.jPlayer.emulateMethods.split(/\s+/g),
  function(a,c){b.internal.domNode[c]=function(a){b[c](a)}});a.each(a.jPlayer.event,function(c,e){var f=!0;a.each(a.jPlayer.reservedEvent.split(/\s+/g),function(a,b){return b===c?(f=!1,!1):void 0});f&&b.element.bind(e+".jPlayer.jPlayerHtml",function(){b._emulateHtmlUpdate();var a=document.createEvent("Event");a.initEvent(c,!1,!0);b.internal.domNode.dispatchEvent(a)})})},_emulateHtmlUpdate:function(){var b=this;a.each(a.jPlayer.emulateStatus.split(/\s+/g),function(a,c){b.internal.domNode[c]=b.status[c]});
  a.each(a.jPlayer.emulateOptions.split(/\s+/g),function(a,c){b.internal.domNode[c]=b.options[c]})},_destroyHtmlBridge:function(){var b=this;this.element.unbind(".jPlayerHtml");a.each((a.jPlayer.emulateMethods+" "+a.jPlayer.emulateStatus+" "+a.jPlayer.emulateOptions).split(/\s+/g),function(a,c){delete b.internal.domNode[c]})}};a.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"};
  a.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",
  URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+a.jPlayer.prototype.version.script+" needs Jplayer.swf version "+a.jPlayer.prototype.version.needFlash+" but found "};a.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",
  URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."};a.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};a.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",
  OPTION_KEY:"The option requested in jPlayer('option') is undefined."};a.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}});(function(a,g,f){"object"===typeof module&&module&&"object"===typeof module.exports?module.exports=f:(a[g]=f,"function"===typeof define&&define.amd&&define(g,[],function(a){return f}))})(this,"jRespond",function(a,g,f){return function(a){var b=[],e=[],d="",h="",g=0,m=500,l=function(a){var c=a.breakpoint,g=a.enter||f;b.push(a);e.push(!1);n(c)&&(g!==f&&g.call(null,{entering:d,exiting:h}),e[b.length-1]=!0)},p=function(){for(var a=[],c=[],g=0;g<b.length;g++){var k=b[g].breakpoint,l=b[g].enter||f,m=b[g].exit||
  f;"*"===k?(l!==f&&a.push(l),m!==f&&c.push(m)):n(k)?(l===f||e[g]||a.push(l),e[g]=!0):(m!==f&&e[g]&&c.push(m),e[g]=!1)}g={entering:d,exiting:h};for(k=0;k<c.length;k++)c[k].call(null,g);for(c=0;c<a.length;c++)a[c].call(null,g)},n=function(a){if("object"===typeof a){if(0<=a.join().indexOf(d))return!0}else if("*"===a||"string"===typeof a&&d===a)return!0},q=function(){var b;b="number"!=typeof window.innerWidth?0!==document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth:
  window.innerWidth;if(b!==g){m=100;for(var e=!1,f=0;f<a.length;f++)if(b>=a[f].enter&&b<=a[f].exit){e=!0;break}e&&d!==a[f].label?(h=d,d=a[f].label,p()):e||""===d||(d="",p())}else m=500;g=b;setTimeout(q,m)};q();return{addFunc:function(a){if(a.length===f)l(a);else for(var b=0;b<a.length;b++)l(a[b])},getBreakpoint:function(){return d}}}}(this,this.document));(function(){var a=[].indexOf||function(a){for(var c=0,b=this.length;c<b;c++)if(c in this&&this[c]===a)return c;return-1},g=[].slice;(function(a,c){return"function"===typeof define&&define.amd?define("waypoints",["jquery"],function(b){return c(b,a)}):c(a.jQuery,a)})(this,function(f,c){var b,e,d,h,k,m,l,p,n,q;b=f(c);l=0<=a.call(c,"ontouchstart");h={horizontal:{},vertical:{}};k=1;m={};q=1;e=function(){function a(b){var d=this;this.$element=b;this.element=b[0];this.didScroll=this.didResize=!1;this.id=
  "context"+k++;this.oldScroll={x:b.scrollLeft(),y:b.scrollTop()};this.waypoints={horizontal:{},vertical:{}};b.data("waypoints-context-id",this.id);m[this.id]=this;b.bind("scroll.waypoints",function(){if(!d.didScroll&&!l)return d.didScroll=!0,c.setTimeout(function(){d.doScroll();return d.didScroll=!1},f.waypoints.settings.scrollThrottle)});b.bind("resize.waypoints",function(){if(!d.didResize)return d.didResize=!0,c.setTimeout(function(){f.waypoints("refresh");return d.didResize=!1},f.waypoints.settings.resizeThrottle)})}
  a.prototype.doScroll=function(){var a,b=this;a={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};!l||a.vertical.oldScroll&&a.vertical.newScroll||f.waypoints("refresh");f.each(a,function(a,c){var d,e,h;h=[];d=(e=c.newScroll>c.oldScroll)?c.forward:c.backward;f.each(b.waypoints[a],function(a,b){var d,e;if(c.oldScroll<(d=b.offset)&&d<=c.newScroll||
  c.newScroll<(e=b.offset)&&e<=c.oldScroll)return h.push(b)});h.sort(function(a,b){return a.offset-b.offset});e||h.reverse();return f.each(h,function(a,b){if(b.options.continuous||a===h.length-1)return b.trigger([d])})});return this.oldScroll={x:a.horizontal.newScroll,y:a.vertical.newScroll}};a.prototype.refresh=function(){var a,b,c=this;b=f.isWindow(this.element);a=this.$element.offset();this.doScroll();a={horizontal:{contextOffset:b?0:a.left,contextScroll:b?0:this.oldScroll.x,contextDimension:this.$element.width(),
  oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:b?0:a.top,contextScroll:b?0:this.oldScroll.y,contextDimension:b?f.waypoints("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return f.each(a,function(a,b){return f.each(c.waypoints[a],function(a,c){var d,e,h,g,k;d=c.options.offset;h=c.offset;e=f.isWindow(c.element)?0:c.$element.offset()[b.offsetProp];f.isFunction(d)?d=d.apply(c.element):
  "string"===typeof d&&(d=parseFloat(d),-1<c.options.offset.indexOf("%")&&(d=Math.ceil(b.contextDimension*d/100)));c.offset=e-b.contextOffset+b.contextScroll-d;if((!c.options.onlyOnScroll||null==h)&&c.enabled){if(null!==h&&h<(g=b.oldScroll)&&g<=c.offset)return c.trigger([b.backward]);if(null!==h&&h>(k=b.oldScroll)&&k>=c.offset||null===h&&b.oldScroll>=c.offset)return c.trigger([b.forward])}})})};a.prototype.checkEmpty=function(){if(f.isEmptyObject(this.waypoints.horizontal)&&f.isEmptyObject(this.waypoints.vertical))return this.$element.unbind("resize.waypoints scroll.waypoints"),
  delete m[this.id]};return a}();d=function(){function a(b,c,d){var e;d=f.extend({},f.fn.waypoint.defaults,d);"bottom-in-view"===d.offset&&(d.offset=function(){var a;a=f.waypoints("viewportHeight");f.isWindow(c.element)||(a=c.$element.height());return a-f(this).outerHeight()});this.$element=b;this.element=b[0];this.axis=d.horizontal?"horizontal":"vertical";this.callback=d.handler;this.context=c;this.enabled=d.enabled;this.id="waypoints"+q++;this.offset=null;this.options=d;c.waypoints[this.axis][this.id]=
  this;h[this.axis][this.id]=this;d=null!=(e=b.data("waypoints-waypoint-ids"))?e:[];d.push(this.id);b.data("waypoints-waypoint-ids",d)}a.prototype.trigger=function(a){if(this.enabled&&(null!=this.callback&&this.callback.apply(this.element,a),this.options.triggerOnce))return this.destroy()};a.prototype.disable=function(){return this.enabled=!1};a.prototype.enable=function(){this.context.refresh();return this.enabled=!0};a.prototype.destroy=function(){delete h[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];
  return this.context.checkEmpty()};a.getWaypointsByElement=function(a){var b;a=f(a).data("waypoints-waypoint-ids");if(!a)return[];b=f.extend({},h.horizontal,h.vertical);return f.map(a,function(a){return b[a]})};return a}();n={init:function(a,b){null==b&&(b={});null==b.handler&&(b.handler=a);this.each(function(){var a,c,h;a=f(this);h=null!=(c=b.context)?c:f.fn.waypoint.defaults.context;f.isWindow(h)||(h=a.closest(h));h=f(h);(c=m[h.data("waypoints-context-id")])||(c=new e(h));return new d(a,c,b)});f.waypoints("refresh");
  return this},disable:function(){return n._invoke(this,"disable")},enable:function(){return n._invoke(this,"enable")},destroy:function(){return n._invoke(this,"destroy")},prev:function(a,b){return n._traverse.call(this,a,b,function(a,b,c){if(0<b)return a.push(c[b-1])})},next:function(a,b){return n._traverse.call(this,a,b,function(a,b,c){if(b<c.length-1)return a.push(c[b+1])})},_traverse:function(a,b,d){var e,h;null==a&&(a="vertical");null==b&&(b=c);h=p.aggregate(b);e=[];this.each(function(){var b;
  b=f.inArray(this,h[a]);return d(e,b,h[a])});return this.pushStack(e)},_invoke:function(a,b){a.each(function(){var a;a=d.getWaypointsByElement(this);return f.each(a,function(a,c){c[b]();return!0})});return this}};f.fn.waypoint=function(){var a,b;b=arguments[0];a=2<=arguments.length?g.call(arguments,1):[];return n[b]?n[b].apply(this,a):f.isFunction(b)?n.init.apply(this,arguments):f.isPlainObject(b)?n.init.apply(this,[null,b]):b?f.error("The "+b+" method does not exist in jQuery Waypoints."):f.error("jQuery Waypoints needs a callback function or handler option.")};
  f.fn.waypoint.defaults={context:c,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1};p={refresh:function(){return f.each(m,function(a,b){return b.refresh()})},viewportHeight:function(){var a;return null!=(a=c.innerHeight)?a:b.height()},aggregate:function(a){var b,c,d;b=h;a&&(b=null!=(d=m[f(a).data("waypoints-context-id")])?d.waypoints:void 0);if(!b)return[];c={horizontal:[],vertical:[]};f.each(c,function(a,d){f.each(b[a],function(a,b){return d.push(b)});d.sort(function(a,b){return a.offset-
  b.offset});c[a]=f.map(d,function(a){return a.element});return c[a]=f.unique(c[a])});return c},above:function(a){null==a&&(a=c);return p._filter(a,"vertical",function(a,b){return b.offset<=a.oldScroll.y})},below:function(a){null==a&&(a=c);return p._filter(a,"vertical",function(a,b){return b.offset>a.oldScroll.y})},left:function(a){null==a&&(a=c);return p._filter(a,"horizontal",function(a,b){return b.offset<=a.oldScroll.x})},right:function(a){null==a&&(a=c);return p._filter(a,"horizontal",function(a,
  b){return b.offset>a.oldScroll.x})},enable:function(){return p._invoke("enable")},disable:function(){return p._invoke("disable")},destroy:function(){return p._invoke("destroy")},extendFn:function(a,b){return n[a]=b},_invoke:function(a){var b;b=f.extend({},h.vertical,h.horizontal);return f.each(b,function(b,c){c[a]();return!0})},_filter:function(a,b,c){var d,e;d=m[f(a).data("waypoints-context-id")];if(!d)return[];e=[];f.each(d.waypoints[b],function(a,b){if(c(d,b))return e.push(b)});e.sort(function(a,
  b){return a.offset-b.offset});return f.map(e,function(a){return a.element})}};f.waypoints=function(){var a,b;b=arguments[0];a=2<=arguments.length?g.call(arguments,1):[];return p[b]?p[b].apply(null,a):p.aggregate.call(null,b)};f.waypoints.settings={resizeThrottle:100,scrollThrottle:30};return b.load(function(){return f.waypoints("refresh")})})}).call(this);(function(){(function(a,g){return"function"===typeof define&&define.amd?define(["jquery","waypoints"],g):g(a.jQuery)})(this,function(a){var g,f;g={wrapper:'<div class="sticky-wrapper" />',stuckClass:"stuck"};f=function(a,b){a.wrap(b.wrapper);return a.parent()};a.waypoints("extendFn","sticky",function(c){var b,e,d;e=a.extend({},a.fn.waypoint.defaults,g,c);b=f(this,e);d=e.handler;e.handler=function(c){var f,g;f=a(this).children(":first");g="down"===c||"right"===c;f.toggleClass(e.stuckClass,g);b.height(g?
  f.outerHeight():"");if(null!=d)return d.call(this,c)};b.waypoint(e);return this.data("stuckClass",e.stuckClass)});return a.waypoints("extendFn","unsticky",function(){this.parent().waypoint("destroy");this.unwrap();return this.removeClass(this.data("stuckClass"))})})}).call(this);(function(a,g){"function"===typeof define&&define.amd?define(["jquery"],a):a(g.jQuery||g.Zepto)})(function(a,g){function f(b,c){this.element=a(b);this.init(c)}var c={show:"infer",innerToggle:!1,hideToggleUntil:!1,touchSupport:!1,toggleEvent:"click",toggleTouchEvent:"touchstart mousedown",wrapperClass:"hideShowPassword-wrapper",toggleClass:"hideShowPassword-toggle",states:{shown:{inputClass:"hideShowPassword-shown",eventName:"passwordShown",toggleClass:"hideShowPassword-toggle-hide",toggleText:"Hide",
  attr:{type:"text",autocapitalize:"off",autocomplete:"off",autocorrect:"off",spellcheck:"false"}},hidden:{inputClass:"hideShowPassword-hidden",eventName:"passwordHidden",toggleClass:"hideShowPassword-toggle-show",toggleText:"Show",attr:{type:"password"}}},widthMethod:a.fn.outerWidth===g?"width":"outerWidth",heightMethod:a.fn.outerHeight===g?"height":"outerHeight"};f.prototype={init:function(a){this.update(a,c,"password"===this.element.prop("type"));this.options.innerToggle&&this.initInnerToggle(this.element,
  this.options)},update:function(b,c,d){c=c||this.options;d=d||!this.options.show;"object"!==typeof b&&(b={show:b});this.options=a.extend(!0,{},c,b);"toggle"===this.options.show&&(this.options.show=d);"infer"===this.options.show&&(this.options.show="password"!==this.element.prop("type"));this.ifCurrentOrNot(a.proxy(function(b){a.each(b.attr,a.proxy(function(a,b){this.element.prop(a,b)},this));this.element.addClass(b.inputClass).trigger(b.eventName)},this),a.proxy(function(a){this.element.removeClass(a.inputClass)},
  this))},toggle:function(){this.update("toggle")},currentStateKey:function(){return this.options.show?"shown":"hidden"},ifCurrentOrNot:function(b,c){var d=this.currentStateKey();a.each(this.options.states,function(a,f){(d===a?b:c)(f)})},initInnerToggle:function(b,c){var d="rtl"===b.css("direction")?"left":"right",f=b[c.widthMethod](),g={position:"relative",display:b.css("display"),verticalAlign:b.css("verticalAlign"),marginTop:b.css("marginTop"),marginRight:b.css("marginRight"),marginBottom:b.css("marginBottom"),
  marginLeft:b.css("marginLeft")},m={position:"absolute",top:"50%",mozUserSelect:"none",webkitUserSelect:"none",msUserSelect:"none",userSelect:"none"},l={marginTop:0,marginRight:0,marginBottom:0,marginLeft:0},p="",n;b.wrap(a("<div />").addClass(c.wrapperClass).css(g));g=b.parent();g[c.widthMethod]()!==f&&g.css("width",f);n=a("<div />").addClass(c.toggleClass);this.updateInnerToggle(n,this.currentStateKey(),c.states);m[d]=0;n.css(m);n.appendTo(g);n.css("marginTop",n[c.heightMethod]()/-2);l["padding"+
  d.replace(/./,function(a){return a[0].toUpperCase()})]=n[c.widthMethod]();b.css(l);if(c.touchSupport)n.css("pointerEvents","none"),b.on(c.toggleTouchEvent,a.proxy(function(a){var b=n.offset().left,f,h;b&&(f=a.pageX||a.originalEvent.pageX,"left"===d?(b+=n[c.widthMethod](),h=f):(h=b,b=f),b>=h&&(a.preventDefault(),this.toggle()))},this));else n.on(c.toggleEvent,a.proxy(function(){this.toggle()},this));a.each(c.states,function(a,b){p+=b.eventName+" "});b.on(p,a.proxy(function(){this.updateInnerToggle(n,
  this.currentStateKey(),c.states)},this));c.hideToggleUntil&&(n.hide(),b.one(c.hideToggleUntil,function(){n.show()}))},updateInnerToggle:function(a,c,d){this.ifCurrentOrNot(function(c){a.addClass(c.toggleClass).text(c.toggleText)},function(c){a.removeClass(c.toggleClass)})}};a.fn.hideShowPassword=function(b){return this.each(function(){var c=a(this),d=c.data("plugin_hideShowPassword");d?d.update(b):c.data("plugin_hideShowPassword",new f(this,b))})};a.each({show:!0,hide:!1,toggle:"toggle"},function(b,
  c){a.fn[b+"Password"]=function(b){return this.hideShowPassword(a.extend({},b,{show:c}))}})},this);$(document).ready(function(){if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)){var a=document.querySelector('meta[name="viewport"]');a&&(a.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0",document.body.addEventListener("gesturestart",function(){a.content="width=device-width, minimum-scale=0.25, maximum-scale=1.6"},!1))}});window.Modernizr=function(a,g,f){function c(a,b){return typeof a===b}function b(a,b){for(var c in a){var d=a[c];if(!~(""+d).indexOf("-")&&l[d]!==f)return"pfx"==b?d:!0}return!1}function e(a,d,e){var h=a.charAt(0).toUpperCase()+a.slice(1),g=(a+" "+r.join(h+" ")+h).split(" ");if(c(d,"string")||c(d,"undefined"))return b(g,d);g=(a+" "+x.join(h+" ")+h).split(" ");a:{a=g;for(var k in a)if(h=d[a[k]],h!==f){d=!1===e?a[k]:c(h,"function")?h.bind(e||d):h;break a}d=!1}return d}function d(){h.input=function(b){for(var c=
  0,d=b.length;c<d;c++)t[b[c]]=!!(b[c]in p);t.list&&(t.list=!(!g.createElement("datalist")||!a.HTMLDataListElement));return t}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));h.inputtypes=function(a){for(var b=0,c,d,e=a.length;b<e;b++){p.setAttribute("type",d=a[b]);if(c="text"!==p.type)p.value=":)",p.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(d)&&p.style.WebkitAppearance!==f?(k.appendChild(p),c=g.defaultView,c=c.getComputedStyle&&
  "textfield"!==c.getComputedStyle(p,null).WebkitAppearance&&0!==p.offsetHeight,k.removeChild(p)):/^(search|tel)$/.test(d)||(c=/^(url|email)$/.test(d)?p.checkValidity&&!1===p.checkValidity():":)"!=p.value);u[a[b]]=!!c}return u}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var h={},k=g.documentElement,m=g.createElement("modernizr"),l=m.style,p=g.createElement("input"),n={}.toString,q=" -webkit- -moz- -o- -ms- ".split(" "),r=["Webkit","Moz","O","ms"],
  x=["webkit","moz","o","ms"],m={},u={},t={},C=[],v=C.slice,A,y=function(a,b,c,d){var e,f,h=g.createElement("div"),l=g.body,m=l||g.createElement("body");if(parseInt(c,10))for(;c--;)e=g.createElement("div"),e.id=d?d[c]:"modernizr"+(c+1),h.appendChild(e);c=['&#173;<style id="smodernizr">',a,"</style>"].join("");h.id="modernizr";(l?h:m).innerHTML+=c;m.appendChild(h);l||(m.style.background="",m.style.overflow="hidden",f=k.style.overflow,k.style.overflow="hidden",k.appendChild(m));a=b(h,a);l?h.parentNode.removeChild(h):
  (m.parentNode.removeChild(m),k.style.overflow=f);return!!a},L=function(){var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(b,d){d=d||g.createElement(a[b]||"div");b="on"+b;var e=b in d;e||(d.setAttribute||(d=g.createElement("div")),d.setAttribute&&d.removeAttribute&&(d.setAttribute(b,""),e=c(d[b],"function"),c(d[b],"undefined")||(d[b]=f),d.removeAttribute(b)));return e}}(),J={}.hasOwnProperty,D;D=c(J,"undefined")||c(J.call,"undefined")?
  function(a,b){return b in a&&c(a.constructor.prototype[b],"undefined")}:function(a,b){return J.call(a,b)};Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=v.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var e=new e,f=b.apply(e,c.concat(v.call(arguments)));return Object(f)===f?f:e}return b.apply(a,c.concat(v.call(arguments)))};return d});m.flexbox=function(){return e("flexWrap")};
  m.canvas=function(){var a=g.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))};m.canvastext=function(){return!(!h.canvas||!c(g.createElement("canvas").getContext("2d").fillText,"function"))};m.webgl=function(){return!!a.WebGLRenderingContext};m.touch=function(){var b;"ontouchstart"in a||a.DocumentTouch&&g instanceof DocumentTouch?b=!0:y(["@media (",q.join("touch-enabled),("),"modernizr){#modernizr{top:9px;position:absolute}}"].join(""),function(a){b=9===a.offsetTop});return b};m.geolocation=
  function(){return"geolocation"in navigator};m.postmessage=function(){return!!a.postMessage};m.websqldatabase=function(){return!!a.openDatabase};m.indexedDB=function(){return!!e("indexedDB",a)};m.hashchange=function(){return L("hashchange",a)&&(g.documentMode===f||7<g.documentMode)};m.history=function(){return!(!a.history||!history.pushState)};m.draganddrop=function(){var a=g.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a};m.websockets=function(){return"WebSocket"in a||
  "MozWebSocket"in a};m.rgba=function(){l.cssText="background-color:rgba(150,255,150,.5)";return!!~(""+l.backgroundColor).indexOf("rgba")};m.hsla=function(){l.cssText="background-color:hsla(120,40%,100%,.5)";return!!~(""+l.backgroundColor).indexOf("rgba")||!!~(""+l.backgroundColor).indexOf("hsla")};m.multiplebgs=function(){l.cssText="background:url(https://),url(https://),red url(https://)";return/(url\s*\(.*?){3}/.test(l.background)};m.backgroundsize=function(){return e("backgroundSize")};m.borderimage=
  function(){return e("borderImage")};m.borderradius=function(){return e("borderRadius")};m.boxshadow=function(){return e("boxShadow")};m.textshadow=function(){return""===g.createElement("div").style.textShadow};m.opacity=function(){l.cssText=q.join("opacity:.55;")+"";return/^0.55$/.test(l.opacity)};m.cssanimations=function(){return e("animationName")};m.csscolumns=function(){return e("columnCount")};m.cssgradients=function(){l.cssText=("background-image:-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:"+
  q.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);return!!~(""+l.backgroundImage).indexOf("gradient")};m.cssreflections=function(){return e("boxReflect")};m.csstransforms=function(){return!!e("transform")};m.csstransforms3d=function(){var a=!!e("perspective");a&&"webkitPerspective"in k.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=9===b.offsetLeft&&3===b.offsetHeight});return a};m.csstransitions=
  function(){return e("transition")};m.fontface=function(){var a;y('@font-face {font-family:"font";src:url("https://")}',function(b,c){var d=g.getElementById("smodernizr"),d=(d=d.sheet||d.styleSheet)?d.cssRules&&d.cssRules[0]?d.cssRules[0].cssText:d.cssText||"":"";a=/src/i.test(d)&&0===d.indexOf(c.split(" ")[0])});return a};m.generatedcontent=function(){var a;y('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:3px/1 a}',function(b){a=3<=b.offsetHeight});return a};m.video=function(){var a=
  g.createElement("video"),b=!1;try{if(b=!!a.canPlayType)b=new Boolean(b),b.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(c){}return b};m.audio=function(){var a=g.createElement("audio"),b=!1;try{if(b=!!a.canPlayType)b=new Boolean(b),b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),b.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,
  ""),b.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),b.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(c){}return b};m.localstorage=function(){try{return localStorage.setItem("modernizr","modernizr"),localStorage.removeItem("modernizr"),!0}catch(a){return!1}};m.sessionstorage=function(){try{return sessionStorage.setItem("modernizr","modernizr"),sessionStorage.removeItem("modernizr"),!0}catch(a){return!1}};m.webworkers=function(){return!!a.Worker};
  m.applicationcache=function(){return!!a.applicationCache};m.svg=function(){return!!g.createElementNS&&!!g.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect};m.inlinesvg=function(){var a=g.createElement("div");a.innerHTML="<svg/>";return"http://www.w3.org/2000/svg"==(a.firstChild&&a.firstChild.namespaceURI)};m.smil=function(){return!!g.createElementNS&&/SVGAnimate/.test(n.call(g.createElementNS("http://www.w3.org/2000/svg","animate")))};m.svgclippaths=function(){return!!g.createElementNS&&
  /SVGClipPath/.test(n.call(g.createElementNS("http://www.w3.org/2000/svg","clipPath")))};for(var O in m)D(m,O)&&(A=O.toLowerCase(),h[A]=m[O](),C.push((h[A]?"":"no-")+A));h.input||d();h.addTest=function(a,b){if("object"==typeof a)for(var c in a)D(a,c)&&h.addTest(c,a[c]);else{a=a.toLowerCase();if(h[a]!==f)return h;b="function"==typeof b?b():b;k.className+=" "+(b?"":"no-")+a;h[a]=b}return h};l.cssText="";m=p=null;(function(a,b){function c(){var a=q.elements;return"string"==typeof a?a.split(" "):a}function d(a){var b=
  p[a._html5shiv];b||(b={},n++,a._html5shiv=n,p[n]=b);return b}function e(a,c,f){c||(c=b);if(r)return c.createElement(a);f||(f=d(c));c=f.cache[a]?f.cache[a].cloneNode():l.test(a)?(f.cache[a]=f.createElem(a)).cloneNode():f.createElem(a);return c.canHaveChildren&&!k.test(a)?f.frag.appendChild(c):c}function f(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag());a.createElement=function(c){return q.shivMethods?e(c,a,b):b.createElem(c)};a.createDocumentFragment=
  Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(q,b.frag)}function h(a){a||(a=b);var c=d(a);if(q.shivCSS&&!m&&!c.hasCSS){var e,g=a;e=g.createElement("p");g=g.getElementsByTagName("head")[0]||g.documentElement;e.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
  e=g.insertBefore(e.lastChild,g.firstChild);c.hasCSS=!!e}r||f(a,c);return a}var g=a.html5||{},k=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,l=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,m,n=0,p={},r;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>";m="hidden"in a;var c;if(!(c=1==a.childNodes.length)){b.createElement("a");var d=b.createDocumentFragment();c="undefined"==typeof d.cloneNode||"undefined"==
  typeof d.createDocumentFragment||"undefined"==typeof d.createElement}r=c}catch(e){r=m=!0}})();var q={elements:g.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==g.shivCSS,supportsUnknownElements:r,shivMethods:!1!==g.shivMethods,type:"default",shivDocument:h,createElement:e,createDocumentFragment:function(a,e){a||(a=b);if(r)return a.createDocumentFragment();e=e||d(a);for(var f=
  e.frag.cloneNode(),h=0,g=c(),k=g.length;h<k;h++)f.createElement(g[h]);return f}};a.html5=q;h(b)})(this,g);h._version="2.6.2";h._prefixes=q;h._domPrefixes=x;h._cssomPrefixes=r;h.mq=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;y("@media "+b+" { #modernizr { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position});return d};h.hasEvent=L;h.testProp=function(a){return b([a])};h.testAllProps=e;h.testStyles=
  y;h.prefixed=function(a,b,c){return b?e(a,b,c):e(a,"pfx")};k.className=k.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+C.join(" "));return h}(this,this.document);
  (function(a,g,f){function c(a){return"[object Function]"==r.call(a)}function b(a){return"string"==typeof a}function e(){}function d(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=x.shift();u=1;a?a.t?n(function(){("c"==a.t?M.injectCss:M.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):u=0}function k(a,b,c,e,f,k,l){function m(c){if(!w&&d(p.readyState)&&(t.r=w=1,!u&&h(),p.onload=p.onreadystatechange=null,c)){"img"!=a&&n(function(){v.removeChild(p)},50);for(var e in D[b])D[b].hasOwnProperty(e)&&
  D[b][e].onload()}}l=l||M.errorTimeout;var p=g.createElement(a),w=0,r=0,t={t:c,s:b,e:f,a:k,x:l};1===D[b]&&(r=1,D[b]=[]);"object"==a?p.data=b:(p.src=b,p.type=a);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){m.call(this,r)};x.splice(e,0,t);"img"!=a&&(r||2===D[b]?(v.insertBefore(p,C?null:q),n(m,l)):D[b].push(p))}function m(a,c,d,e,f){return u=0,c=c||"j",b(a)?k("c"==c?y:A,a,c,this.i++,d,e,f):(x.splice(this.i++,0,a),1==x.length&&h()),this}function l(){var a=M;return a.loader={load:m,
  i:0},a}var p=g.documentElement,n=a.setTimeout,q=g.getElementsByTagName("script")[0],r={}.toString,x=[],u=0,t="MozAppearance"in p.style,C=t&&!!g.createRange().compareNode,v=C?p:q.parentNode,p=a.opera&&"[object Opera]"==r.call(a.opera),p=!!g.attachEvent&&!p,A=t?"object":p?"script":"img",y=p?"script":A,L=Array.isArray||function(a){return"[object Array]"==r.call(a)},J=[],D={},O={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},F,M;M=function(a){function d(a){a=a.split("!");var b=J.length,c=
  a.pop(),e=a.length,c={url:c,origUrl:c,prefixes:a},f,h,g;for(h=0;h<e;h++)g=a[h].split("="),(f=O[g.shift()])&&(c=f(c,g));for(h=0;h<b;h++)c=J[h](c);return c}function h(a,b,e,g,k){var m=d(a),n=m.autoCallback;m.url.split(".").pop().split("?").shift();m.bypass||(b&&(b=c(b)?b:b[a]||b[g]||b[a.split("/").pop().split("?")[0]]),m.instead?m.instead(a,b,e,g,k):(D[m.url]?m.noexec=!0:D[m.url]=1,e.load(m.url,m.forceCSS||!m.forceJS&&"css"==m.url.split(".").pop().split("?").shift()?"c":f,m.noexec,m.attrs,m.timeout),
  (c(b)||c(n))&&e.load(function(){l();b&&b(m.origUrl,k,g);n&&n(m.origUrl,k,g);D[m.url]=2})))}function g(a,d){function f(a,e){if(a)if(b(a))e||(m=function(){var a=[].slice.call(arguments);n.apply(this,a);p()}),h(a,m,d,0,k);else{if(Object(a)===a)for(q in r=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(q)&&(!e&&!--r&&(c(m)?m=function(){var a=[].slice.call(arguments);n.apply(this,a);p()}:m[q]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,
  b);p()}}(n[q])),h(a[q],m,d,q,k))}else!e&&p()}var k=!!a.test,l=a.load||a.both,m=a.callback||e,n=m,p=a.complete||e,r,q;f(k?a.yep:a.nope,!!l);l&&f(l)}var k,m,n=this.yepnope.loader;if(b(a))h(a,0,n,0);else if(L(a))for(k=0;k<a.length;k++)m=a[k],b(m)?h(m,0,n,0):L(m)?M(m):Object(m)===m&&g(m,n);else Object(a)===a&&g(a,n)};M.addPrefix=function(a,b){O[a]=b};M.addFilter=function(a){J.push(a)};M.errorTimeout=1E4;null==g.readyState&&g.addEventListener&&(g.readyState="loading",g.addEventListener("DOMContentLoaded",
  F=function(){g.removeEventListener("DOMContentLoaded",F,0);g.readyState="complete"},0));a.yepnope=l();a.yepnope.executeStack=h;a.yepnope.injectJs=function(a,b,c,f,k,l){var m=g.createElement("script"),p,r;f=f||M.errorTimeout;m.src=a;for(r in c)m.setAttribute(r,c[r]);b=l?h:b||e;m.onreadystatechange=m.onload=function(){!p&&d(m.readyState)&&(p=1,b(),m.onload=m.onreadystatechange=null)};n(function(){p||(p=1,b(1))},f);k?m.onload():q.parentNode.insertBefore(m,q)};a.yepnope.injectCss=function(a,b,c,d,f,k){d=
  g.createElement("link");var l;b=k?h:b||e;d.href=a;d.rel="stylesheet";d.type="text/css";for(l in c)d.setAttribute(l,c[l]);f||(q.parentNode.insertBefore(d,q),n(b,0))}})(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};window.Typekit||(window.Typekit={});
  window.Typekit.config={c:[".tk-adelle",'"adelle",serif',".tk-proxima-nova",'"proxima-nova",sans-serif'],f:"//use.typekit.net/c/0cfbb1/adelle:i4:i7:n4:n7,proxima-nova:i4:i7:n4:n7.XKB:N:2,XKG:N:2,XK9:N:2,XKF:N:2,W0W:N:2,W0Z:N:2,W0V:N:2,W0Y:N:2/{format}{/extras*}?3bb2a6e53c9684ffdc9a9bf01f5b2a62dc1020e61a7e41334f5590cfa9c9099ab4956f3c3a1aacf3822f2c6c773d5edf8dbb2bad740573a9686ae515379135aef5da928774d4c466fee018b8b07dfe4418bcfe5d5d7b48cf1cbf854220b55b972d125b17a7afd4c36fff838ee527e9ae9304b90f635744c314b4787db73420f83530a360fb73244e45834ab4efdf53e67718585c7a3407a7125db0d8c6fef65f0aa38923a0",fn:["adelle",
  ["i4","i7","n4","n7"],"proxima-nova",["i4","i7","n4","n7"]],k:"//use.typekit.net/{id}.js",p:"//p.typekit.net/p.gif?s=1&k=wji5adk&ht=tk&h={host}&f=2002.6863.6862.2001.175.139.140.176&a=936440&_={_}",w:"wji5adk"};
  (function(a,g,f){function c(a){return function(){return this[a]}}function b(a,b){var c=a.split("."),d=Qa;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function e(a,b,c){return a.call.apply(a.bind,arguments)}function d(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,
  c)}}return function(){return a.apply(b,arguments)}}function h(a,b,c){h=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:d;return h.apply(null,arguments)}function k(a,b){this.da=a;this.V=b||a;this.z=this.V.document}function m(a,b,c){(a=a.z.getElementsByTagName(b)[0])||(a=g.documentElement);a&&a.lastChild&&a.insertBefore(c,a.lastChild)}function l(a,b){function c(){a.z.body?b():setTimeout(c,0)}c()}function p(a,b){for(var c=a.className.split(/\s+/),d=0,e=c.length;d<
  e;d++)if(c[d]==b)return;c.push(b);a.className=c.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function n(a,b){for(var c=a.className.split(/\s+/),d=[],e=0,f=c.length;e<f;e++)c[e]!=b&&d.push(c[e]);a.className=d.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function q(a,b){for(var c=a.className.split(/\s+/),d=0,e=c.length;d<e;d++)if(c[d]==b)return!0;return!1}function r(a){var b=a.V.location.protocol;"about:"==b&&(b=a.da.location.protocol);return"https:"===("https:"==b?"https:":"http:")}
  function x(b,c,d){var e=b.z.getElementsByTagName("head")[0];if(e){var f=b.createElement("script",{src:c}),h=!1;f.onload=f.onreadystatechange=function(){h||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(h=!0,d&&d(null),f.onload=f.onreadystatechange=null,"HEAD"==f.parentNode.tagName&&e.removeChild(f))};e.appendChild(f);a.setTimeout(function(){h||(h=!0,d&&d(Error("Script load timeout")))},5E3)}}function u(a,b,c){this.Va=a;this.ga=b;this.Ua=c}function t(a,b,c,d){this.g=null!=
  a?a:null;this.o=null!=b?b:null;this.J=null!=c?c:null;this.h=null!=d?d:null}function C(a,b){return a.g>b.g||a.g===b.g&&a.o>b.o||a.g===b.g&&a.o===b.o&&a.J>b.J?1:a.g<b.g||a.g===b.g&&a.o<b.o||a.g===b.g&&a.o===b.o&&a.J<b.J?-1:0}function v(a,b){return 0===C(a,b)||1===C(a,b)}function A(a){a=Ra.exec(a);var b=null,c=null,d=null,e=null;a&&(null!==a[1]&&a[1]&&(b=parseInt(a[1],10)),null!==a[2]&&a[2]&&(c=parseInt(a[2],10)),null!==a[3]&&a[3]&&(d=parseInt(a[3],10)),null!==a[4]&&a[4]&&(e=/^[0-9]+$/.test(a[4])?parseInt(a[4],
  10):a[4]));return new t(b,c,d,e)}function y(a,b,c,d,e,f,h,g,k,l,m){this.W=a;this.q=b;this.Ta=c;this.B=d;this.F=e;this.ya=f;this.m=h;this.l=g;this.Pa=k;this.S=l;this.A=m}function L(a,b){this.e=a;this.R=b}function J(a){var b=F(a.e,/(iPod|iPad|iPhone|Android|Windows Phone|BB\d{2}|BlackBerry)/,1);if(""!=b)return/BB\d{2}/.test(b)&&(b="BlackBerry"),b;a=F(a.e,/(Linux|Mac_PowerPC|Macintosh|Windows|CrOS)/,1);return""!=a?("Mac_PowerPC"==a&&(a="Macintosh"),a):"Unknown"}function D(a){var b=F(a.e,/(OS X|Windows NT|Android) ([^;)]+)/,
  2);if(b||(b=F(a.e,/Windows Phone( OS)? ([^;)]+)/,2))||(b=F(a.e,/(iPhone )?OS ([\d_]+)/,2)))return b;if(b=F(a.e,/(?:Linux|CrOS) ([^;)]+)/,1))for(var b=b.split(/\s/),c=0;c<b.length;c+=1)if(/^[\d\._]+$/.test(b[c]))return b[c];return(a=F(a.e,/(BB\d{2}|BlackBerry).*?Version\/([^\s]*)/,2))?a:"Unknown"}function O(a){var b=J(a),c=D(a),d=A(c),e=F(a.e,/AppleWeb(?:K|k)it\/([\d\.\+]+)/,1),f=A(e),h="Unknown",g;new t;var k="Unknown",l;/OPR\/[\d.]+/.test(a.e)?h="Opera":-1!=a.e.indexOf("Chrome")||-1!=a.e.indexOf("CrMo")||
  -1!=a.e.indexOf("CriOS")?h="Chrome":/Silk\/\d/.test(a.e)?h="Silk":"BlackBerry"==b||"Android"==b?h="BuiltinBrowser":-1!=a.e.indexOf("PhantomJS")?h="PhantomJS":-1!=a.e.indexOf("Safari")?h="Safari":-1!=a.e.indexOf("AdobeAIR")&&(h="AdobeAIR");"BuiltinBrowser"==h?k="Unknown":"Silk"==h?k=F(a.e,/Silk\/([\d\._]+)/,1):"Chrome"==h?k=F(a.e,/(Chrome|CrMo|CriOS)\/([\d\.]+)/,2):-1!=a.e.indexOf("Version/")?k=F(a.e,/Version\/([\d\.\w]+)/,1):"AdobeAIR"==h?k=F(a.e,/AdobeAIR\/([\d\.]+)/,1):"Opera"==h?k=F(a.e,/OPR\/([\d.]+)/,
  1):"PhantomJS"==h&&(k=F(a.e,/PhantomJS\/([\d.]+)/,1));g=A(k);l="AdobeAIR"==h?2<g.g||2==g.g&&5<=g.o:"BlackBerry"==b?10<=d.g:"Android"==b?2<d.g||2==d.g&&1<d.o:526<=f.g||525<=f.g&&13<=f.o;return new y(h,g,k,"AppleWebKit",f,e,b,d,c,M(a.R),new u(l,536>f.g||536==f.g&&11>f.o,"iPhone"==b||"iPad"==b||"iPod"==b||"Macintosh"==b))}function F(a,b,c){return(a=a.match(b))&&a[c]?a[c]:""}function M(a){if(a.documentMode)return a.documentMode}function E(a){this.Na=a||"-"}function I(a,b,c){this.j=a;this.n=b;this.$=c;
  this.s="wf";this.r=new E("-")}function P(a){n(a.n,a.r.h(a.s,"loading"));q(a.n,a.r.h(a.s,"active"))||p(a.n,a.r.h(a.s,"inactive"));B(a,"inactive")}function B(a,b,c){if(a.$[b])if(c)a.$[b](c.getName(),G(c));else a.$[b]()}function N(a,b){this.W=a;this.ha=4;this.X="n";var c=(b||"n4").match(/^([nio])([1-9])$/i);c&&(this.X=c[1],this.ha=parseInt(c[2],10))}function G(a){return a.X+a.ha}function K(a,b){this.j=a;this.O=b;this.D=this.j.createElement("span",{"aria-hidden":"true"},this.O)}function z(a,b){var c;
  c=[];for(var d=b.W.split(/,\s*/),e=0;e<d.length;e++){var f=d[e].replace(/['"]/g,"");-1==f.indexOf(" ")?c.push(f):c.push("'"+f+"'")}c=c.join(",");d="normal";e=b.ha+"00";"o"===b.X?d="oblique":"i"===b.X&&(d="italic");a.D.style.cssText="position:absolute;top:-999px;left:-999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+c+";"+("font-style:"+d+";font-weight:"+e+";")}function H(a){m(a.j,"body",a.D)}function w(a,b,c,d,
  e,f,h,g){this.ia=a;this.Ma=b;this.j=c;this.C=d;this.O=g||"BESbswy";this.A=e;this.P={};this.ea=f||5E3;this.ra=h||null;this.N=this.M=null;a=new K(this.j,this.O);H(a);for(var k in ka)ka.hasOwnProperty(k)&&(z(a,new N(ka[k],G(this.C))),this.P[ka[k]]=a.D.offsetWidth);a.remove()}function ta(a,b,c){for(var d in ka)if(ka.hasOwnProperty(d)&&b===a.P[ka[d]]&&c===a.P[ka[d]])return!0;return!1}function ha(a){var b=a.M.D.offsetWidth,c=a.N.D.offsetWidth;b===a.P.serif&&c===a.P["sans-serif"]||a.A.ga&&ta(a,b,c)?Sa()-
  a.Ra>=a.ea?a.A.ga&&ta(a,b,c)&&(null===a.ra||a.ra.hasOwnProperty(a.C.getName()))?S(a,a.ia):S(a,a.Ma):setTimeout(h(function(){ha(this)},a),25):S(a,a.ia)}function S(a,b){a.M.remove();a.N.remove();b(a.C)}function V(a,b,c,d){this.j=b;this.G=c;this.ba=0;this.va=this.pa=!1;this.ea=d;this.A=a.A}function R(a){0==--a.ba&&a.pa&&(a.va?(a=a.G,n(a.n,a.r.h(a.s,"loading")),n(a.n,a.r.h(a.s,"inactive")),p(a.n,a.r.h(a.s,"active")),B(a,"active")):P(a.G))}function na(){var a=[{name:"font-family",value:Q.c[da+1]}];this.Qa=
  [Q.c[da]];this.la=a}function Ia(a){for(var b=a.Qa.join(","),c=[],d=0;d<a.la.length;d++){var e=a.la[d];c.push(e.name+":"+e.value+";")}return b+"{"+c.join("")+"}"}function ua(a){this.j=a}function za(a,b){this.t=a;this.v=b}function ia(a){this.Sa=a}function ja(a,b,c,d){this.L=a;this.T=b;this.eb=c;this.fb=d;this.na={};this.ma={}}function Ba(a,b,c,d){c.push(a.L);d[a.L]=a.H(b);a=a.ma[b]||[];for(b=0;b<a.length;b++){for(var e=a[b],f=e.L,h=!1,g=0;g<c.length;g++)c[g]==f&&(h=!0);h||(c.push(f),d[f]=e.H())}}function Ca(a,
  b){this.L=a;this.T=b}function ea(){this.ka=this.xa=this.K=this.U=this.oa=!0}function ba(a){return"Windows"===a.m}function Z(a){return ba(a)&&0===C(a.l,new t(5,1))||ba(a)&&0===C(a.l,new t(5,2))||ba(a)&&0===C(a.l,new t(6,0))||ba(a)&&v(a.l,new t(6,1))}function W(a){return"Macintosh"===a.m&&(v(a.l,new t(10,4))||null===a.l.g)}function va(a,b){return b.oa&&("iPhone"===a.m||"iPod"===a.m)}function Ja(a,b){return va(a,b)&&v(a.l,new t(4,2))&&-1===C(a.l,new t(5))}function Ka(a,b){return b.U&&"iPad"===a.m&&v(a.l,
  new t(4,2))&&-1===C(a.l,new t(5))}function X(a,b){return b.K&&"Android"===a.m}function Aa(a,b){return X(a,b)&&v(a.l,new t(2,2))&&-1===C(a.l,new t(3,1))}function La(a,b){return X(a,b)&&v(a.l,new t(3,1))&&-1===C(a.l,new t(4,1))}function ca(a){return"Linux"===a.m||"Ubuntu"===a.m}function la(a){return"Gecko"===a.B&&0===C(a.F,new t(1,9,1))&&!/^b[1-3]$/.test(a.F.h||"")}function Da(a){return"Safari"===a.getName()&&"AppleWebKit"===a.B||"Unknown"===a.getName()&&"AppleWebKit"===a.B&&("iPhone"===a.m||"iPad"===
  a.m||"iPod"===a.m)}function Y(a){return"Safari"===a.getName()&&"AppleWebKit"===a.B&&v(a.F,new t(525,13))&&-1===C(a.F,new t(534,50))}function wa(a){return"Opera"===a.getName()&&v(a.q,new t(10,54))&&-1===C(a.q,new t(11,10))}function ma(a){return"BuiltinBrowser"===a.getName()}function oa(a){this.ua=a}function Ma(a,b){return b}function Ta(a,b){var c=b||new ea,d;for(d in Va){var e=Va[d];if(T[e](a,c))return e}return null}function fa(a){this.j=a;this.Z=this.e=this.t=null;this.v=[];this.Q=[];this.wa=this.aa=
  null}function xa(a,b,c,d){this.Oa=a;this.j=b;this.e=c;this.n=d;this.u=[]}function pa(b,c){if(0!=b.u.length){for(var d=new I(b.j,b.n,c),e=!1,f=0;f<b.u.length;f++)b.u[f].init(),e=e||b.u[f].supportsConfiguredBrowser();if(e){p(d.n,d.r.h(d.s,"loading"));B(d,"loading");for(var h=new V(b.e,b.j,d),d=function(a,b,c){for(var d=[],e=0;e<a.length;e+=1){var f=a[e];if(b[f])for(var g=b[f],k=0;k<g.length;k+=1)d.push(new N(f,g[k]));else d.push(new N(f))}h.fa(d,{},null,c)},e=0;e<b.u.length;e++)f=b.u[e],f.supportsConfiguredBrowser()&&
  (f.load(d,e==b.u.length-1),f.performOptionalActions(a))}else P(d);b.u=[]}}function Ua(a){this.I=a;this.u=[]}function Wa(a,b,c,d){this.I=a;this.z=b;this.La=c;this.qa=d}function Oa(a,b,c){var d=0,e=0;a=a.z;a.documentElement&&(a.documentElement[b]||a.documentElement[c])?(d=a.documentElement[b],e=a.documentElement[c]):a.body&&(a.body[b]||a.body[c])&&(d=a.body[b],e=a.body[c]);return[d,e]}function qa(a,b,c,d){if(b.attachEvent){var e=a.I;b["e"+c+d]=d;b[c+d]=function(){b["e"+c+d](e.event)};b.attachEvent("on"+
  c,b[c+d])}else b.addEventListener(c,d,!1)}var Qa=this,Sa=Date.now||function(){return+new Date};k.prototype.createElement=function(a,b,c){a=this.z.createElement(a);if(b)for(var d in b)b.hasOwnProperty(d)&&("style"==d?a.style.cssText=b[d]:a.setAttribute(d,b[d]));c&&a.appendChild(this.z.createTextNode(c));return a};b("internalWebfont.BrowserInfo",u);u.prototype.Ia=c("Va");u.prototype.hasWebFontSupport=u.prototype.Ia;u.prototype.Ja=c("ga");u.prototype.hasWebKitFallbackBug=u.prototype.Ja;u.prototype.Ka=
  c("Ua");u.prototype.hasWebKitMetricsBug=u.prototype.Ka;var Ra=/^([0-9]+)(?:[\._-]([0-9]+))?(?:[\._-]([0-9]+))?(?:[\._+-]?(.*))?$/;t.prototype.toString=function(){return[this.g,this.o||"",this.J||"",this.h||""].join("")};b("internalWebfont.UserAgent",y);y.prototype.getName=c("W");y.prototype.getName=y.prototype.getName;y.prototype.Ha=c("Ta");y.prototype.getVersion=y.prototype.Ha;y.prototype.Da=c("B");y.prototype.getEngine=y.prototype.Da;y.prototype.Ea=c("ya");y.prototype.getEngineVersion=y.prototype.Ea;
  y.prototype.Fa=c("m");y.prototype.getPlatform=y.prototype.Fa;y.prototype.Ga=c("Pa");y.prototype.getPlatformVersion=y.prototype.Ga;y.prototype.Ca=c("S");y.prototype.getDocumentMode=y.prototype.Ca;y.prototype.Ba=c("A");y.prototype.getBrowserInfo=y.prototype.Ba;var ab=new y("Unknown",new t,"Unknown","Unknown",new t,"Unknown","Unknown",new t,"Unknown",void 0,new u(!1,!1,!1));L.prototype.parse=function(){var a;if(-1!=this.e.indexOf("MSIE")||-1!=this.e.indexOf("Trident/")){a=J(this);var b=D(this),c=A(b),
  d,e,f=null,h=null,g=F(this.e,/Trident\/([\d\w\.]+)/,1),k=M(this.R);d=-1!=this.e.indexOf("MSIE")?F(this.e,/MSIE ([\d\w\.]+)/,1):F(this.e,/rv:([\d\w\.]+)/,1);e=A(d);""!=g?(f="Trident",h=A(g)):(f="Unknown",h=new t,g="Unknown");a=new y("MSIE",e,d,f,h,g,a,c,b,k,new u("Windows"==a&&6<=e.g||"Windows Phone"==a&&8<=c.g,!1,!1))}else-1!=this.e.indexOf("Opera")?(a="Unknown",b=F(this.e,/Presto\/([\d\w\.]+)/,1),c=A(b),d=D(this),e=A(d),f=M(this.R),null!==c.g?a="Presto":(-1!=this.e.indexOf("Gecko")&&(a="Gecko"),
  b=F(this.e,/rv:([^\)]+)/,1),c=A(b)),-1!=this.e.indexOf("Opera Mini/"))?(h=F(this.e,/Opera Mini\/([\d\.]+)/,1),g=A(h),a=new y("OperaMini",g,h,a,c,b,J(this),e,d,f,new u(!1,!1,!1))):-1!=this.e.indexOf("Version/")&&(h=F(this.e,/Version\/([\d\.]+)/,1),g=A(h),null!==g.g)?a=new y("Opera",g,h,a,c,b,J(this),e,d,f,new u(10<=g.g,!1,!1)):(h=F(this.e,/Opera[\/ ]([\d\.]+)/,1),g=A(h),a=null!==g.g?new y("Opera",g,h,a,c,b,J(this),e,d,f,new u(10<=g.g,!1,!1)):new y("Opera",new t,"Unknown",a,c,b,J(this),e,d,f,new u(!1,
  !1,!1))):/OPR\/[\d.]+/.test(this.e)?a=O(this):/AppleWeb(K|k)it/.test(this.e)?a=O(this):-1!=this.e.indexOf("Gecko")?(a="Unknown",b=new t,c="Unknown",d=D(this),e=A(d),f=!1,-1!=this.e.indexOf("Firefox")?(a="Firefox",c=F(this.e,/Firefox\/([\d\w\.]+)/,1),b=A(c),f=3<=b.g&&5<=b.o):-1!=this.e.indexOf("Mozilla")&&(a="Mozilla"),h=F(this.e,/rv:([^\)]+)/,1),g=A(h),f||(f=1<g.g||1==g.g&&9<g.o||1==g.g&&9==g.o&&2<=g.J||null!=h.match(/1\.9\.1b[123]/)||null!=h.match(/1\.9\.1\.[\d\.]+/)),a=new y(a,b,c,"Gecko",g,h,J(this),
  e,d,M(this.R),new u(f,!1,!1))):a=ab;return a};E.prototype.h=function(a){for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c].replace(/[\W_]+/g,"").toLowerCase());return b.join(this.Na)};N.prototype.getName=c("W");K.prototype.remove=function(){var a=this.D;a.parentNode&&a.parentNode.removeChild(a)};var ka={ab:"serif",$a:"sans-serif",Xa:"monospace"};w.prototype.start=function(){this.M=new K(this.j,this.O);H(this.M);this.N=new K(this.j,this.O);H(this.N);this.Ra=Sa();z(this.M,new N(this.C.getName()+
  ",serif",G(this.C)));z(this.N,new N(this.C.getName()+",sans-serif",G(this.C)));ha(this)};V.prototype.fa=function(a,b,c,d){if(0===a.length&&d)P(this.G);else for(this.ba+=a.length,d&&(this.pa=d),d=0;d<a.length;d++){var e=a[d],f=b[e.getName()],g=this.G,k=e;p(g.n,g.r.h(g.s,k.getName(),G(k).toString(),"loading"));B(g,"fontloading",k);(new w(h(this.za,this),h(this.Aa,this),this.j,e,this.A,this.ea,c,f)).start()}};V.prototype.za=function(a){var b=this.G;n(b.n,b.r.h(b.s,a.getName(),G(a).toString(),"loading"));
  n(b.n,b.r.h(b.s,a.getName(),G(a).toString(),"inactive"));p(b.n,b.r.h(b.s,a.getName(),G(a).toString(),"active"));B(b,"fontactive",a);this.va=!0;R(this)};V.prototype.Aa=function(a){var b=this.G;n(b.n,b.r.h(b.s,a.getName(),G(a).toString(),"loading"));q(b.n,b.r.h(b.s,a.getName(),G(a).toString(),"active"))||p(b.n,b.r.h(b.s,a.getName(),G(a).toString(),"inactive"));B(b,"fontinactive",a);R(this)};ua.prototype.toString=function(){return encodeURIComponent(this.j.V.location.hostname||this.j.da.location.hostname)};
  za.prototype.toString=function(){for(var a=[],b=0;b<this.v.length;b++)for(var c=this.v[b],d=c.H(),c=c.H(this.t),e=0;e<d.length;e++){var f;a:{for(f=0;f<c.length;f++)if(d[e]===c[f]){f=!0;break a}f=!1}a.push(f?1:0)}a=a.join("");a=a.replace(/^0+/,"");b=[];for(d=a.length;0<d;d-=4)c=a.slice(0>d-4?0:d-4,d),b.unshift(parseInt(c,2).toString(16));return b.join("")};ia.prototype.h=function(a,b){var c=b||{},d=this.Sa.replace(/\{\/?([^*}]*)(\*?)\}/g,function(a,b,d){return d&&c[b]?"/"+c[b].join("/"):c[b]||""});
  d.match(/^\/\//)&&(d=(a?"https:":"http:")+d);return d.replace(/\/*\?*($|\?)/,"$1")};ja.prototype.H=function(a){return a?(this.na[a]||this.T).slice(0):this.T.slice(0)};ja.prototype.fa=function(a,b,c){var d=[],e={};Ba(this,b,d,e);a(d,e,c)};Ca.prototype.H=c("T");var Va={Ya:"a",Za:"b",cb:"d",bb:"f",Wa:"i"},T={a:function(a,b){return Y(a)&&Z(a)||ma(a)&&(Aa(a,b)||X(a,b)&&v(a.l,new t(4,1)))||b.K&&"Silk"===a.getName()&&-1===C(a.q,new t(2))&&(Aa(a,b)||W)||b.K&&"Silk"===a.getName()&&v(a.q,new t(2))&&X(a,b)&&
  v(a.l,new t(4,1))||Da(a)&&(Ka(a,b)||Ja(a,b))||la(a)&&(Z(a)||ca(a))||wa(a)&&(Z(a)||ca(a))||("Chrome"===a.getName()&&1===C(a.q,new t(4,0,249))&&-1===C(a.q,new t(6))||0===C(a.q,new t(4,0,249))&&(null===a.q.h||4<=a.q.h))&&(Z(a)||ca(a)||W(a))||"Chrome"===a.getName()&&v(a.q,new t(6))&&(Ka(a,b)||Ja(a,b))||"AdobeAIR"===a.getName()&&v(a.q,new t(2,5))&&(ba(a)&&null===a.l.g||ca(a))},b:function(a){return la(a)&&W(a)||Y(a)&&W(a)||wa(a)&&W(a)||"AdobeAIR"===a.getName()&&v(a.q,new t(2,5))&&W(a)},d:function(a,b){return"Chrome"===
  a.getName()&&v(a.q,new t(6))&&(Z(a)||ca(a)||W(a)||X(a,b)||"CrOS"===a.m||b.U&&"iPad"===a.m&&v(a.l,new t(5))||va(a,b)&&v(a.l,new t(5)))||"Gecko"===a.B&&1===C(a.F,new t(1,9,1))&&(Z(a)||ca(a)||W(a)||X(a,b))||"Safari"===a.getName()&&"AppleWebKit"===a.B&&v(a.F,new t(534,50))&&(Z(a)||W(a))||Da(a)&&(b.U&&"iPad"===a.m&&v(a.l,new t(5))||va(a,b)&&v(a.l,new t(5)))||"Opera"===a.getName()&&v(a.q,new t(11,10))&&(Z(a)||ca(a)||W(a)||X(a,b))||"MSIE"===a.getName()&&9<=a.S&&(ba(a)&&v(a.l,new t(6,1))||ba(a)&&0===C(a.l,
  new t(6,0)))||"MSIE"===a.getName()&&b.xa&&"Windows Phone"===a.m&&v(a.l,new t(8))||ma(a)&&b.ka&&"BlackBerry"===a.m&&v(a.l,new t(10))},f:function(a,b){return ma(a)&&La(a,b)||b.K&&"Silk"===a.getName()&&v(a.q,new t(2))&&(La(a,b)||ca(a))},i:function(a){return"MSIE"===a.getName()&&v(a.q,new t(6,0))&&(void 0===a.S||9>a.S)&&Z(a)}},U={};U.i=new oa(function(a,b,c){for(var d=0;d<b.length;d+=1){var e=b[d],f=a.replace(/(-1|-2)$/,"").slice(0,28)+"-"+e;c.push(new Ca(f,[e]))}a={};for(e=0;e<b.length;e++)c=b[e],d=
  c.charAt(1),(a[d]||(a[d]=[])).push(c);c=[[4,3,2,1,5,6,7,8,9],[7,8,9,6,5,4,3,2,1]];d=[];for(e=0;e<c.length;e++)for(var f=c[e],h=0;h<f.length;h++){var g=f[h];if(a[g]){d=d.concat(a[g]);break}}c=d;d={};a=[];for(e=0;e<c.length;e++)f=c[e],d[f]||(d[f]=!0,a.push(f));c=[];for(d=0;d<b.length;d++)for(e=b[d],f=0;f<a.length;f++)h=a[f],h==e&&c.push(h);return c});var ra={};ra.a=ra.b=ra.d=function(){return[]};ra.f=function(a){return[new ua(a)]};ra.i=function(a,b,c){return[new ua(a),new za(b,c)]};fa.prototype.supportsConfiguredBrowser=
  function(){return!!this.t};fa.prototype.init=function(){if(0<this.Q.length){for(var a=[],b=0;b<this.Q.length;b++)a.push(Ia(this.Q[b]));var b=this.j,a=a.join(""),c=this.j.createElement("style");c.setAttribute("type","text/css");c.styleSheet?c.styleSheet.cssText=a:c.appendChild(g.createTextNode(a));m(b,"head",c)}};fa.prototype.load=function(a,b){if(this.t){for(var c=U[this.t]||new oa(Ma),d=0;d<this.v.length;d++){for(var e=this.v[d],f=this.t,h=c,g=[],k=e.L.split(",")[0].replace(/"|'/g,""),n=e.H(),p=
  g,w=void 0,q=[],H={},t=0;t<n.length;t++)w=n[t],0<w.length&&!H[w]&&(H[w]=!0,q.push(w));n=q;h=h.ua?h.ua(k,n,p):n;e.na[f]=h;e.ma[f]=g}if(this.aa){c=ra[this.t](this.j,this.t,this.v);d=this.t;e=[];for(f=0;f<c.length;f++)e.push(c[f].toString());var d=this.aa.h(r(this.j),{format:d,extras:e}),c=this.j,d=c.createElement("link",{rel:"stylesheet",href:d}),u=!1;d.onload=function(){u||(u=!0)};d.onerror=function(){u||(u=!0)};m(c,"head",d)}if(a){var v=this,x=this.t;l(this.j,function(){for(var c=0;c<v.v.length;c++)v.v[c].fa(a,
  x,b&&c==v.v.length-1)})}}};fa.prototype.collectFontFamilies=function(a,b){if(this.t)for(var c=0;c<this.v.length;c++)Ba(this.v[c],this.t,a,b)};fa.prototype.performOptionalActions=function(){if(this.ca){var b=this,c=this.e,d=this.j;l(this.j,function(){var e=b.ca;if(e.ta){var f=a.__adobewebfontsappname__,f=f?f.toString().substr(0,20):"",e=e.ta.h(r(d),{host:encodeURIComponent(d.V.location.hostname||d.da.location.hostname),app:encodeURIComponent(f),_:(+new Date).toString()}),h=new Image(1,1);h.src=e;h.onload=
  function(){h.onload=null}}e=b.ca;e.ja&&(e=e.ja.h(c,d),m(d,"body",e))})}};xa.prototype.Y=function(a){this.u.push(a)};xa.prototype.load=function(a,b){var c=a,d=b||{};"string"==typeof c?c=[c]:c&&c.length||(d=c||{},c=[]);if(c.length)for(var e=this,f=c.length,h=0;h<c.length;h++){var g=this.Oa.h(r(this.j),{id:encodeURIComponent(c[h])});x(this.j,g,function(){0==--f&&pa(e,d)})}else pa(this,d)};Ua.prototype.Y=function(a){this.u.push(a)};Ua.prototype.load=function(){var b=this.I.__webfonttypekitmodule__;if(b)for(var c=
  0;c<this.u.length;c++){var d=this.u[c],e=b[d.wa];e&&e(function(b,c,e){b=[];c={};var f=(new L(navigator.userAgent,g)).parse(),h=d;h.e=f;h.t=Ta(h.e,h.Z);d.supportsConfiguredBrowser()&&(d.init(),d.load(null),d.collectFontFamilies(b,c),d.performOptionalActions(a));e(d.supportsConfiguredBrowser(),b,c)})}};Wa.prototype.h=function(a,b){var c=this.z.createElement("img");c.setAttribute("width",62);c.setAttribute("height",25);c.setAttribute("src",this.La.h(r(b)));c.setAttribute("class","typekit-badge");c.setAttribute("alt",
  "Fonts by Typekit");c.setAttribute("title","Information about the fonts used on this site");c.style.position="fixed";c.style.zIndex=2E9;c.style.right=0;c.style.bottom=0;c.style.cursor="pointer";c.style.border=0;"Opera"!=a.getName()&&(c.style.content="none");c.style.display="inline";c.style["float"]="none";c.style.height="25px";c.style.left="auto";c.style.margin=0;c.style.maxHeight="25px";c.style.maxWidth="62px";c.style.minHeight="25px";c.style.minWidth="62px";c.style.orphans=2;c.style.outline="none";
  c.style.overflow="visible";c.style.padding=0;c.style.pageBreakAfter="auto";c.style.pageBreakBefore="auto";c.style.pageBreakInside="auto";c.style.tableLayout="auto";c.style.textIndent=0;c.style.top="auto";c.style.unicodeBidi="normal";c.style.verticalAlign="baseline";c.style.visibility="visible";c.style.widows=2;c.style.width="65px";if(this.qa){var d=this.z,e=this.qa;qa(this,c,"click",function(){d.location.href=e})}var f=a.m;if("MSIE"==a.getName()&&"Windows Phone"!=f){c.style.position="absolute";var h=
  this,g=function(){var a=Oa(h,"scrollLeft","scrollTop"),b=Oa(h,"clientWidth","clientHeight");c.style.bottom="auto";c.style.right="auto";c.style.top=a[1]+b[1]-25+"px";c.style.left=a[0]+b[0]-3-62+"px"};qa(this,this.I,"scroll",g);qa(this,this.I,"resize",g)}if("iPhone"==f||"iPod"==f||"iPad"==f||"Android"==f||"Windows Phone"==f||"BlackBerry"==f)c.style.display="none";return c};var Xa=(new L(navigator.userAgent,g)).parse();a.Typekit||(a.Typekit={});if(!a.Typekit.load){var Ya=a.Typekit.config||{},Za=null;
  Ya.k&&(Za=new ia(Ya.k));var Ea=new xa(Za,new k(a),Xa,g.documentElement),Fa=new Ua(a);a.Typekit.load=function(){Ea.load.apply(Ea,arguments)};a.Typekit.addKit=function(){Ea.Y.apply(Ea,arguments)}}var $a,Pa=null,Na=null,Ga=null,ya,sa,aa,Q=a.Typekit.config||{};Q.b&&(Pa=new ia(Q.b),Na=new Wa(a,g,Pa,Q.bu));Q.p&&(Ga=new ia(Q.p));ya=new function(){var a=Ga;this.ja=Na;this.ta=a};aa=new fa(new k(a));aa.ca=ya;sa=new ea;sa.oa=!Q.si;sa.U=!Q.st;sa.K=!Q.sa;sa.xa=!Q.sw;sa.ka=!Q.sb;aa.Z=sa;Q.w&&(aa.wa=Q.w);Q.f&&($a=
  new ia(Q.f),aa.aa=$a);var da;if(Q.fn)for(da=0;da<Q.fn.length;da+=2)aa.v.push(new ja(Q.fn[da],Q.fn[da+1]));if(Q.c)for(da=0;da<Q.c.length;da+=2)aa.Q.push(new na);var Ha;if(Ha=Fa)Ha=!!Fa.I.__webfonttypekitmodule__;Ha?(Fa.Y(aa),Fa.load()):(aa.e=Xa,aa.t=Ta(aa.e,aa.Z),a.Typekit.addKit(aa))})(this,document);$.widget("ui.slider",$.ui.slider,{_mouseCapture:function(a){var g,f,c,b,e,d=this,h=this.options;if(h.disabled)return!1;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();g=this._normValueFromMouse({x:a.pageX,y:a.pageY});f=this._valueMax()-this._valueMin()+1;this.handles.each(function(a){if(!$(this).hasClass("ui-slider-handle-disabled")){var e=Math.abs(g-d.values(a));if(f>e||f===e&&(a===d._lastChangedValue||d.values(a)===h.min))f=
  e,c=$(this),b=a}});if("undefined"===typeof c||!1===this._start(a,b))return!1;this._mouseSliding=!0;this._handleIndex=b;c.addClass("ui-state-active").focus();e=c.offset();this._clickOffset=!$(a.target).parents().addBack().is(".ui-slider-handle")||$(a.target).parents().addBack().is(".ui-slider-handle-disabled")?{left:0,top:0}:{left:a.pageX-e.left-c.width()/2,top:a.pageY-e.top-c.height()/2-(parseInt(c.css("borderTopWidth"),10)||0)-(parseInt(c.css("borderBottomWidth"),10)||0)+(parseInt(c.css("marginTop"),
  10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,b,g);return this._animateOff=!0}});
  (function(a){function g(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=ma(a),h=jQuery.support.boxSizing&&"border-box"===jQuery.css(a,"boxSizing",!1,f);if(0>=e||null==e){e=oa(a,b,f);if(0>e||null==e)e=a.style[b];if(fa.test(e))return e;d=h&&(jQuery.support.boxSizingReliable||e===a.style[b]);e=parseFloat(e)||0}else a.offsetWidth<a.clientWidth&&"undefined"!==typeof a.getBoundingClientRect&&(e=a.getBoundingClientRect(),e="width"===b?Math.round(100*e.width):Math.round(100*e.height));c=c||(h?
  "border":"content");b=c===(d?"border":"content")?4:"width"===b?1:0;for(h=0;4>b;b+=2)"margin"===c&&(h+=jQuery.css(a,c+pa[b],!0,f)),d?("content"===c&&(h-=jQuery.css(a,"padding"+pa[b],!0,f)),"margin"!==c&&(h-=jQuery.css(a,"border"+pa[b]+"Width",!0,f))):(h+=jQuery.css(a,"padding"+pa[b],!0,f),"padding"!==c&&(h+=jQuery.css(a,"border"+pa[b]+"Width",!0,f)));return e+h+"px"}function f(a){return jQuery.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var c,b,e,d,h,k,m,l,p,n,q,r,x,u,t,C,v,A,y,L,
  J,D,O,F,M,E,I,P,B,N,G,K,z,H,w,ta,ha,S,V,R,na,Ia,ua,za,ia,ja,Ba,Ca,ea,ba,Z,W,va,Ja,Ka,X,Aa,La,ca,la,Da,Y,wa=16/9;a.fn.VLplayer=function(f){function g(b){if("auto"==e.playerType)if(-1<navigator.userAgent.indexOf("iPad"))d="ios";else if(-1<navigator.userAgent.indexOf("iPod")||-1<navigator.userAgent.indexOf("iPhone"))d="ios-mobile";else if(-1<navigator.userAgent.indexOf("Android"))d="android";else{var c=document.createElement("video");"undefined"!=typeof c&&c.canPlayType&&c.canPlayType("video/mp4")&&
  !e.live?(a(".VLplayer-HTML5-trial-info").removeClass("hidden"),d="cookie"in document&&0<document.cookie.length&&-1<document.cookie.indexOf("cspanvl_tryhtml5=true")&&-1==navigator.userAgent.search(/MSIE [^10]/)?"html":b&&-1==navigator.userAgent.search(/MSIE [^10]/)?"html":"flash"):d="flash"}else d=e.playerType}function Oa(){a(c).html("");r=!1;m=40;if(e.live||e.noShare)m=0;"auto"===e.width?(r=!0,"auto"===e.height?(l=Math.min(a(c).width(),1024),k=Math.min(Math.floor(l/wa),a(window).height()-m),h=k+m,
  "flash"==d?a(c).css({width:"100%",height:h+"px",maxWidth:"1024px"}):a(c).css({width:"100%",height:"auto",maxWidth:"1024px"})):(h=e.height,k=h-m,l=Math.min(Math.floor(k*wa),1024),a(c).css({width:"100%",height:h+"px",maxWidth:"1024px"}))):("auto"===e.height?(r=!0,l=Math.min(e.width,1024),k=Math.min(Math.floor(l/wa),a(window).height()-m),h=k+m):(l=Math.min(e.width,1024),h=e.height,k=h-m),"flash"==d?a(c).css({width:l+"px",height:h+"px",maxWidth:"1024px"}):a(c).css({width:l+"px",height:"auto",maxWidth:"1024px"}));
  e.noShare&&(t=u=!0);e.noClip&&(t=!0);e.noOptions&&(v=!0);a(window).resize(function(){n&&(r||x)&&(clearTimeout(q),q=setTimeout(oa,100))});var b;a:{p="/common/services/flashXml.php?";S="/assets/player/ajax-player.php?os="+d+"&html5=";V=ea=R=!1;if(e.clipid)p+="clipid="+e.clipid,0==e.clipid.toString().indexOf("n")&&(e.clipid=e.clipid.toString().substring(1)),S+="clip&id="+e.clipid;else if(e.progid)S+="program&id="+e.progid,e.network&&0<e.network&&e.start&&e.end?(p+="z="+e.start+"-"+e.end+"-"+e.network+
  "-"+e.progid,S+="&net="+e.network+"&start="+e.start+"&end="+e.end):(p+="programid="+e.progid,e.personid&&(p+="p"+e.personid),e.privateHash&&(p+="x"+e.privateHash),e.airingid&&(p+="air"+e.airingid,S+="&airingid="+e.airingid));else if(e.appid)S+="appearance&id="+e.appid,p+="appid="+e.appid;else if(e.playlistid)S+="playlist&id="+e.playlistid,p+="playlistid="+e.playlistid;else if(e.eventid)S+="event&id="+e.eventid,p+="eventid="+e.eventid,e.personid&&(p+="p"+e.personid);else if(e.live)S+="live&id="+e.live,
  p+="live="+e.live;else{a(c).html("<div class='VLplayer-error-message'>No Video Specified</div>");b=!1;break a}b=!0}if(b)switch(d){case "flash":Sa();break;case "html":Ra();break;case "ios":case "android":case "android-mobile":e.live?ka():Ra();break;case "ios-mobile":ka()}}function qa(d){d.success?(b=a(c).find("#flashPlayer")[0],d.ref.tabIndex="0"):(n=!1,Qa())}function Qa(){var b="Flash Player version 10.0.0 is required to view this video. Please <a href='http://get.adobe.com/flashplayer/'>upgrade to the latest verison of Flash</a>";
  e.progid||e.clipid?(b+=", or use a browser that supports HTML5 MP4 video streaming.",g(!0),"flash"!=d?Oa():(a(c).addClass("VLplayer-failed"),a(c).append("<div class='VLplayer-error-message'>\n"+b+"</div>\n"))):(a(c).addClass("VLplayer-failed"),a(c).append("<div class='VLplayer-error-message'>\n"+b+"</div>\n"))}function Sa(){A={bgcolor:"#ffffff",base:"swf",allowScriptAccess:"always",allowFullScreen:"true",quality:"high",wmode:"transparent"};e.noShare&&(A.noshare="true");var b={system:p,style:"inline"};
  0!=e.startOffset||0!=e.endOffset?(b.start=e.startOffset,b.end=e.endOffset,b.autoplay="true",b.initSeek=e.startOffset):e.autoplay&&(b.autoplay="true");e.noShare&&(b.noshare="true");0<e.autoStart&&(b.initSeek=e.autoStart);e.noStandalone&&(b.noStandalone="true");var d={id:"flashPlayer",name:"flashPlayer"};if("undefined"===typeof swfobject)n=!1;else if(swfobject.hasFlashPlayerVersion("10.2.0")){n=!0;y="http://static.c-spanvideo.org/assets/swf/CSPANPlayer.2013.12.18.swf";0!=e.flashPlayer&&(y=e.flashPlayer);
  if(0!=e.startOffset||0!=e.endOffset)y="http://static.c-spanvideo.org/assets/swf/CSPANPlayer.2013.11.13.swf";L="10.2.0"}else swfobject.hasFlashPlayerVersion("10.0.0")&&(n=!0,y="http://static.c-spanvideo.org/assets/swf/CSPANPlayer_ppc.swf",L="10.0.0");if(n){var f=1;for(J="VL-Flash-"+f;0<a("#"+J).length;)f++,J="VL-Flash-"+f;a(c).prepend("<div id='"+J+"'></div>");e.progid?swfobject.embedSWF(y+"?programid="+e.progid,J,"100%","100%",L,!1,b,A,d,qa):e.clipid?swfobject.embedSWF(y+"?clipid="+e.clipid,J,"100%",
  "100%",L,!1,b,A,d,qa):e.appid?swfobject.embedSWF(y+"?appid="+e.appid,J,"100%","100%",L,!1,b,A,d,qa):e.playlistid?swfobject.embedSWF(y+"?playlistid="+e.playlistid,J,"100%","100%",L,!1,b,A,d,qa):e.eventid?swfobject.embedSWF(y+"?eid="+e.eventid,J,"100%","100%",L,!1,b,A,d,qa):e.live?swfobject.embedSWF(y+"?live="+e.live,J,"100%","100%",L,!1,b,A,d,qa):n=!1}else Qa()}function Ra(){D=[];O=[];E=[];I=[];P=[];B=0;H=-1;K=0;na=[];X=Ia=0;Aa=x=ja=ua=Ca=Ba=ia=za=!1;var b=0;e.basicHTML&&(u=t=v=!0);var d="";e.progid?
  d="program":e.clipid?d="clip":e.appid?d="app":e.playlistid?d="playlist":e.eventid?d="event":e.live&&(d="live");var f=a("div#video-embed").width();a.ajax({type:"GET",url:S,data:{html5:d,width:f},dataType:"json",success:function(d){if(d&&"Success"==d.video["@status"]){for(var e in d.video.files){D[e]=d.video.files[e].path["#text"].replace("&amp;","&");E[e]=parseInt(d.video.files[e].offset["#text"],10);P[e]=parseInt(d.video.files[e].length["#text"],10);if("undefined"!==typeof d.video.files[e].qualities){qualities=
  [];for(var f in d.video.files[e].qualities){var h=d.video.files[e].qualities[f].file["#text"].replace("&amp;","&"),g=parseInt(d.video.files[e].qualities[f].height["#text"]),k=parseInt(d.video.files[e].qualities[f].bitrate["#text"]);if("undefined"!=typeof d.video.files[e].qualities[f].profile&&"undefined"!=typeof d.video.files[e].qualities[f].level)var l=d.video.files[e].qualities[f].profile["#text"],m=d.video.files[e].qualities[f].level["#text"];else m=l="";qualities[f]={file:h,height:g,bitrate:k,
  profile:l,level:m}}O[e]=qualities}0==e&&(b=B=E[0]);I[e]=b;b+=P[e]}d.video.clipprog?V=parseInt(d.video.clipprog["#text"],10):t=!0;Ja=d.video.addclipurl?d.video.addclipurl["#text"]:"http://www.c-spanvideo.org/videoLibrary/clip.php";d.video.twurl&&(za=d.video.twurl["#text"]);d.video.fburl&&(ia=d.video.fburl["#text"]);d.video.saveurl&&(ua=d.video.saveurl["#text"]);d.video.shareurl?ja=d.video.shareurl["#text"]:t=u=!0;d.video.embedcode?(Ba=d.video.embedcode["#text"],d.video.embediframe&&(Ca=d.video.embediframe["#text"])):
  C=!0;d.video.thumbimg&&(ea=d.video.thumbimg["#text"],(e=ea.match(/_w(\d+)_h(\d+)_i(\d+)/))&&3<e.length?(Z=parseInt(e[1],10),ba=parseInt(e[2],10),W=parseInt(e[3],10)):ea=!1);d.video.capfile&&(R=d.video.capfile["#text"]);d.video.clippingUbeg&&(Aa=d.video.clippingUbeg["#text"]);N=b;G=N-B;H=B;e="";d.video.poster&&(e=d.video.poster["#text"]);fa(e)}else return d=d.video.error?d.video.error["#text"]:"This video is currently unavailable for this device.",0<a(c).find(".VLplayer-error-message").length?a(c).find(".VLplayer-error-message").append("<br/>"+
  d):a(c).append("<div class='VLplayer-error-message'>\n"+d+"</div>\n"),a(c).addClass("VLplayer-failed"),!1}})}function fa(f){a(c).append("<video class='VLplayer-video' poster='"+f+"' width='"+l+"' height='"+k+"'></video>\n<div class='VLplayer-loading'><span>Loading...</span></div>\n<div class='VLplayer-controls'>\n<ul class='options'>\n<li><span class='VLplayer-video-time'>"+T(G)+"</span></li>\n</ul>\n<button class='VLplayer-playpause play' aria-label='Play' tabindex='1'><i class='icon-play-4'></i><i class='icon-pause-2'></i></button>\n<div class='VLplayer-time-slider-wrapper'>\n<div class='VLplayer-time-slider'>\n<div class='ui-slider-range'></div>\n<a href='#' class='ui-slider-handle VLplayer-slider-clipping-handle VLplayer-slider-clipping-begin ui-slider-handle-disabled' role='slider' aria-label='Clip Start' aria-valuetext='"+
  U(0)+"' tabindex='3'><span class='ui-handle-tooltip'>"+T(0)+"</span></a>\n<a href='#' class='ui-slider-handle VLplayer-slider-clipping-handle VLplayer-slider-clipping-end ui-slider-handle-disabled' role='slider' aria-label='Clip End' aria-valuetext='"+U(G)+"' tabindex='4'><span class='ui-handle-tooltip'>"+T(G)+"</span></a>\n<a href='#' class='ui-slider-handle' role='slider' aria-label='Current Video Position' aria-valuetext='"+U(0)+"' tabindex='2'><span class='ui-handle-tooltip'>"+T(0)+"</span></a>\n</div>\n</div>\n</div>\n");
  a(c).addClass("VLplayer-tablet-player");b=a(c).find("video");w=a(c).find(".VLplayer-time-slider");ha=a(c).find(".VLplayer-video-time");a(c).find(".VLplayer-controls").css({bottom:m+"px"});0<E[0]&&a(c).find(".VLplayer-playpause").addClass("VLplayer-playpause-disabled").attr("disabled","disabled");v||(R&&(a(c).append("<div class='VLplayer-cc'><div class='background'></div><p></p></div>\n<form class='VLplayer-cc-form VLplayer-option-form-cc'>\n<a class='VLplayer-option-form-close' aria-label='Close'><i class='icon-cancel-circle'></i></a>\n<h3>Captions</h3>\n<label><input class='VLplayer-cc-toggle' type='checkbox' name='cc' value='1'/> Show CCs</label>\n<br/><label>Foreground: </label><label class='VLplayer-cc-color' title='white'><input type='radio' name='forecolor' value='#FFF'/></label><label class='VLplayer-cc-color' title='black'><input type='radio' name='forecolor' value='#000'/></label><label class='VLplayer-cc-color' title='red'><input type='radio' name='forecolor' value='#F00'/></label><label class='VLplayer-cc-color' title='green'><input type='radio' name='forecolor' value='#0F0'/></label><label class='VLplayer-cc-color' title='blue'><input type='radio' name='forecolor' value='#00F'/></label><label class='VLplayer-cc-color' title='yellow'><input type='radio' name='forecolor' value='#FF0'/></label><label class='VLplayer-cc-color' title='magenta'><input type='radio' name='forecolor' value='#F0F'/></label><label class='VLplayer-cc-color' title='cyan'><input type='radio' name='forecolor' value='#0FF'/></label>\n<br/><label class='VLplayer-cc-opacity'>Foreground Opacity: <input type='hidden' name='foreopacity' value='1.0'/><span class='current-value'>100%</span><span class='increase-value' aria-label='Increase Text Opacity'><i class='icon-plus-circle'></i></span><span class='decrease-value' aria-label='Decrease Text Opacity'><i class='icon-minus-circle'></i></span></label>\n<br/><label>Background: </label><label class='VLplayer-cc-color' title='white'><input type='radio' name='backcolor' value='#FFF'/></label><label class='VLplayer-cc-color' title='black'><input type='radio' name='backcolor' value='#000'/></label><label class='VLplayer-cc-color' title='red'><input type='radio' name='backcolor' value='#F00'/></label><label class='VLplayer-cc-color' title='green'><input type='radio' name='backcolor' value='#0F0'/></label><label class='VLplayer-cc-color' title='blue'><input type='radio' name='backcolor' value='#00F'/></label><label class='VLplayer-cc-color' title='yellow'><input type='radio' name='backcolor' value='#FF0'/></label><label class='VLplayer-cc-color' title='magenta'><input type='radio' name='backcolor' value='#F0F'/></label><label class='VLplayer-cc-color' title='cyan'><input type='radio' name='backcolor' value='#0FF'/></label>\n<br/><label class='VLplayer-cc-opacity'>Background Opacity: <input type='hidden' name='backopacity' value='1.0'/><span class='current-value'>100%</span><span class='increase-value' aria-label='Increase Background Opacity'><i class='icon-plus-circle'></i></span><span class='decrease-value' aria-label='Decrease Background Opacity'><i class='icon-minus-circle'></i></span></label>\n<br/><label>Font: <select name='font'><option value='inherit'>Default</option><option value='sans-serif' style='font-family:sans-serif;'>Sans Serif</option><option value='serif' style='font-family:serif;'>Serif</option><option value='monospace' style='font-family:monospace;'>Monospace</option><option value='cursive' style='font-family:cursive;'>Cursive</option></select></label>\n<br/><label class='VLplayer-cc-size'>Size: <input type='hidden' name='size' value='12'/><span class='current-value'>12</span><span class='increase-value' aria-label='Increase Font Size'><i class='icon-plus-circle'></i></span><span class='decrease-value' aria-label='Decrease Font Size'><i class='icon-minus-circle'></i></span></label>\n</form>\n"),
  a(c).find(".VLplayer-controls ul.options").append("<li><a data-videooption='cc' href='#' aria-label='Closed Captioning Options'><i class='icon-cc-2' tabindex='5'></i></a></li>"),a(c).on({click:function(){a(this).parent().hasClass("VLplayer-cc-opacity")?(1>a(this).siblings("input").val()&&a(this).siblings("input").val(parseFloat(a(this).siblings("input").val())+.25),a(this).siblings("span.current-value").html(100*a(this).siblings("input").val()+"%")):(32>a(this).siblings("input").val()&&a(this).siblings("input").val(parseInt(a(this).siblings("input").val(),
  10)+4),a(this).siblings("span.current-value").html(a(this).siblings("input").val()));a(c).find(".VLplayer-cc-form").change()}},".VLplayer-cc-opacity span.increase-value, .VLplayer-cc-size span.increase-value"),a(c).on({click:function(){a(this).parent().hasClass("VLplayer-cc-opacity")?(0<a(this).siblings("input").val()&&a(this).siblings("input").val(parseFloat(a(this).siblings("input").val())-.25),a(this).siblings("span.current-value").html(100*a(this).siblings("input").val()+"%")):(8<a(this).siblings("input").val()&&
  a(this).siblings("input").val(parseInt(a(this).siblings("input").val(),10)-4),a(this).siblings("span.current-value").html(a(this).siblings("input").val()));a(c).find(".VLplayer-cc-form").change()}},".VLplayer-cc-opacity span.decrease-value, .VLplayer-cc-size span.decrease-value"),a(c).find(".VLplayer-cc-color input").each(function(){a(this).parent().css({backgroundColor:a(this).val()})}),a(c).on({change:function(){a(this).find(".VLplayer-cc-toggle").is(":checked")?(a(c).find(".VLplayer-cc").show(),
  a.cookie("cspanvl_cc","true",{path:"/"})):(a(c).find(".VLplayer-cc").hide(),a.removeCookie("cspanvl_cc",{path:"/"}));0<a(this).find("input[name='forecolor']:checked").length&&(a(c).find(".VLplayer-cc p").css({color:a(this).find("input[name='forecolor']:checked").val()}),a.cookie("cspanvl_cc_foreground",a(this).find("input[name='forecolor']:checked").val(),{path:"/"}));0<a(this).find("input[name='backcolor']:checked").length&&(a(c).find(".VLplayer-cc .background").css({backgroundColor:a(this).find("input[name='backcolor']:checked").val()}),
  a.cookie("cspanvl_cc_background",a(this).find("input[name='backcolor']:checked").val(),{path:"/"}));a(c).find(".VLplayer-cc .background").css({opacity:a(this).find("input[name='backopacity']").val()});a(c).find(".VLplayer-cc p").css({opacity:a(this).find("input[name='foreopacity']").val(),fontSize:a(this).find("input[name='size']").val()+"px",lineHeight:a(this).find("input[name='size']").val()+"px",fontFamily:a(this).find("select[name='font']").val()});a.cookie("cspanvl_cc_font",a(this).find("select[name='font']").val(),
  {path:"/"});a.cookie("cspanvl_cc_size",a(this).find("input[name='size']").val(),{path:"/"});a.cookie("cspanvl_cc_foreopacity",a(this).find("input[name='foreopacity']").val(),{path:"/"});a.cookie("cspanvl_cc_backopacity",a(this).find("input[name='backopacity']").val(),{path:"/"})}},".VLplayer-cc-form"),"true"==a.cookie("cspanvl_cc")&&a(c).find(".VLplayer-cc-toggle").attr("checked",!0),void 0!==a.cookie("cspanvl_cc_foreground")&&a(c).find(".VLplayer-cc-form input[name='forecolor'][value='"+a.cookie("cspanvl_cc_foreground")+
  "']").attr("checked",!0),void 0!==a.cookie("cspanvl_cc_background")&&a(c).find(".VLplayer-cc-form input[name='backcolor'][value='"+a.cookie("cspanvl_cc_background")+"']").attr("checked",!0),void 0!==a.cookie("cspanvl_cc_font")&&a(c).find(".VLplayer-cc-form select[name='font'] option[value='"+a.cookie("cspanvl_cc_font")+"']").attr("selected",!0),void 0!==a.cookie("cspanvl_cc_size")&&(a(c).find(".VLplayer-cc-form input[name='size']").val(a.cookie("cspanvl_cc_size")),a(c).find(".VLplayer-cc-form label.VLplayer-cc-size span.current-value").html(a.cookie("cspanvl_cc_size"))),
  void 0!==a.cookie("cspanvl_cc_foreopacity")&&(a(c).find(".VLplayer-cc-form input[name='foreopacity']").val(a.cookie("cspanvl_cc_foreopacity")),a(c).find(".VLplayer-cc-form input[name='foreopacity']").siblings("span.current-value").html(100*a.cookie("cspanvl_cc_foreopacity")+"%")),void 0!==a.cookie("cspanvl_cc_backopacity")&&(a(c).find(".VLplayer-cc-form input[name='backopacity']").val(a.cookie("cspanvl_cc_backopacity")),a(c).find(".VLplayer-cc-form input[name='backopacity']").siblings("span.current-value").html(100*
  a.cookie("cspanvl_cc_backopacity")+"%")),a(c).find(".VLplayer-cc-form").change()),"html"==d&&(a(c).append("<form class='VLplayer-volume-form VLplayer-option-form-volume'>\n<div class='VLplayer-volume-slider-wrapper'>\n<div class='VLplayer-volume-slider'>\n</div>\n</div>\n<input class='VLplayer-volume-mute' type='checkbox' name='mute' value='1'/><span>Mute</span>\n</form>\n"),a(c).find(".VLplayer-controls ul.options").append("<li><a data-videooption='volume' href='#' aria-label='Volume Options'><i class='icon-volume-high' tabindex='6'></i></a></li>"),
  a(c).on({click:function(){a(this).hasClass("VLplayer-button-active")?(a(this).removeClass("VLplayer-button-active"),a(c).find(".VLplayer-volume-form").hide()):(a(this).addClass("VLplayer-button-active"),a(c).find(".VLplayer-volume-form").show().position({my:"center bottom",at:"center top-10",of:a(this)}));return!1}},".VLplayer-volume-button"),a(c).on({change:function(){a(this).is(":checked")?("undefined"===typeof b[0].volume?a(this).data("lastvolume",.5):a(this).data("lastvolume",b[0].volume),b[0].muted=
  !0,a(".VLplayer-volume-slider").slider("value",0)):(b[0].muted=!1,b[0].volume=a(this).data("lastvolume"),a(".VLplayer-volume-slider").slider("value",a(this).data("lastvolume")))}},".VLplayer-volume-mute"),f=void 0!==a.cookie("cspanvl_volume")?a.cookie("cspanvl_volume"):.5,b[0].volume=f,a(".VLplayer-volume-slider").slider({min:0,max:1,value:f,step:.01,range:"min",orientation:"vertical",slide:function(c,d){b[0].volume=d.value;a.cookie("cspanvl_volume",d.value,{path:"/"});0<d.value&&a(".VLplayer-volume-mute").is(":checked")&&
  a(".VLplayer-volume-mute").removeAttr("checked")}})),("undefined"==typeof e.embedded||!e.embedded||a(c)[0].requestFullscreen||a(c)[0].msRequestFullscreen||a(c)[0].mozRequestFullScreen||a(c)[0].webkitRequestFullscreen)&&a(c).find(".VLplayer-controls ul").append("<li><a class='VLplayer-fullscreen-button' data-videooption='fullscreen' href='#' aria-label='Fullscreen' tabindex='7'><i class='icon-expand'></i></a></li>"),a(document).on({"fullscreenchange mozfullscreenchange webkitfullscreenchange MSFullscreenChange":function(b){void 0==
  (document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)&&(x=!1,a(c).removeClass("VLplayer-wrapper-fullscreen"),a(c).css({maxWidth:"1024px"}),a(c).find(".VLplayer-fullscreen-button").removeClass("VLplayer-option-active"),oa())},keypress:function(c){if("INPUT"==a(document.activeElement).prop("tagName")||"BUTTON"==a(document.activeElement).prop("tagName")||"SELECT"==a(document.activeElement).prop("tagName")||"TEXTAREA"==a(document.activeElement).prop("tagName")||
  "A"==a(document.activeElement).prop("tagName")&&!a(document.activeElement).hasClass("ui-slider-handle"))return!0;if(13==c.which||32==c.which)c.stopPropagation(),c.preventDefault(),b.prop("paused")?b.trigger("play"):b.trigger("pause")},keydown:function(b){if("INPUT"==a(document.activeElement).prop("tagName")||"SELECT"==a(document.activeElement).prop("tagName")||"TEXTAREA"==a(document.activeElement).prop("tagName")||"A"==a(document.activeElement).prop("tagName")&&a(document.activeElement).hasClass("ui-slider-handle"))return!0;
  if(37==b.keyCode||39==b.keyCode)b.stopPropagation(),b.preventDefault(),ya(!0),a(w).find(".ui-slider-handle").eq(2).focus()}}),"html"!=d||"undefined"!=typeof e.noStandalone&&1==e.noStandalone||a(c).find(".VLplayer-controls ul").append("<li><a data-videooption='popout' href='#' aria-label='Play in New Window'><i class='icon-new-tab' tabindex='8'></i></a></li>"),a(c).on({click:function(){if(void 0==a(this).data("videooption"))return!1;switch(a(this).data("videooption")){case "fullscreen":a(this).hasClass("VLplayer-option-active")?
  (x=!1,document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),a(c).removeClass("VLplayer-wrapper-fullscreen"),a(c).css({maxWidth:"1024px"}),a(this).removeClass("VLplayer-option-active")):(x=!0,a(c)[0].requestFullscreen?a(c)[0].requestFullscreen():a(c)[0].msRequestFullscreen?a(c)[0].msRequestFullscreen():a(c)[0].mozRequestFullScreen?
  a(c)[0].mozRequestFullScreen():a(c)[0].webkitRequestFullscreen&&a(c)[0].webkitRequestFullscreen(),a(c).addClass("VLplayer-wrapper-fullscreen"),a(c).css({maxWidth:"none"}),a(this).addClass("VLplayer-option-active"));oa();break;case "cc":case "volume":case "settings":a(this).hasClass("VLplayer-option-active")?(a(this).removeClass("VLplayer-option-active"),a(c).find(".VLplayer-option-form-"+a(this).data("videooption")).hide(),"cc"==a(this).data("videooption")&&a(c).find(".VLplayer-cc p").html("")):("volume"!=
  a(this).data("videooption")&&b.trigger("pause"),a(c).find(".VLplayer-option-active").each(function(){"fullscreen"!=a(this).data("videooption")&&a(this).click()}),a(this).addClass("VLplayer-option-active"),"volume"==a(this).data("videooption")?a(c).find(".VLplayer-option-form-volume").show().position({my:"center bottom",at:"center top-10",of:a(this)}):a(c).find(".VLplayer-option-form-"+a(this).data("videooption")).show().position({my:"center top",at:"center top",of:a(b)}),"cc"==a(this).data("videooption")&&
  a(c).find(".VLplayer-cc p").html("CLOSED CAPTIONING TEXT SAMPLE"));break;case "popout":b.trigger("pause");a(c).find(".VLplayer-fullscreen-button").hasClass("VLplayer-option-active")&&a(c).find(".VLplayer-fullscreen-button").click();var d=ja.replace("/video/","/video/standalone/")+"&popoutPlayer";window.open(d,"","width=512, height=328")}return!1}},".VLplayer-controls ul li a"),ea&&(a(c).append("<div class='VLplayer-timeline-wrapper'>\n<ul class='VLplayer-timeline-thumbs'>\n<li class='VLplayer-timeline-thumb'></li><li class='VLplayer-timeline-thumb'></li><li class='VLplayer-timeline-thumb'></li><li class='VLplayer-timeline-thumb VLplayer-timeline-thumb-selected'></li><li class='VLplayer-timeline-thumb'></li><li class='VLplayer-timeline-thumb'></li><li class='VLplayer-timeline-thumb'></li></ul>\n</div>\n"),
  a(c).find(".VLplayer-timeline-thumbs .VLplayer-timeline-thumb").each(function(){a(this).css({backgroundImage:"url("+ea+")"})})));u||Fa();xa();Ma();if(-1!=a.inArray(d,["html","android","android-mobile","ios"]))if(0<O.length){f="https://static.c-span.org/assets/documents/grimalkin?n="+(new Date).getTime();var h,g;h=(new Date).getTime();a("#bandwidth").load(f,function(){g=(new Date).getTime();F=(4194304/((g-h)/1E3)/1024).toFixed(0);ma();if(1<D.length)for(var a=P[0],c=0;c<P.length;c++)if(a>=e.autoStart){a-=
  P[c];K=c;b.html('<source src="'+D[c]+"#t="+(E[c]+e.autoStart-a)+'">');break}else a+=P[c+1];else b.html('<source src="'+D[0]+"#t="+B+'">')})}else if(0<e.autoStart){f=P[0];for(var p=0;p<P.length;p++)if(f>=e.autoStart){f-=P[p];K=p;b.html('<source src="'+D[p]+"#t="+(E[p]+e.autoStart-f)+'">');break}else f+=P[p+1]}else b.html('<source src="'+D[0]+"#t="+B+'">');f=B;0<e.autoStart&&(f=B+e.autoStart);a(w).slider({min:B,max:N,step:1,values:[B,N,f],start:function(c,d){a(b).addClass("VLplayer-video-seeking");
  ta=d.values[2];ea&&Na()},slide:function(c,d){var e=!0;d.values[0]>d.values[1]?(a(d.handle).hasClass("VLplayer-slider-clipping-begin")?(a(w).slider("values",0,d.values[1]-1),a(w).slider("values",2,Math.max(d.values[1]-1,d.values[2]))):(a(w).slider("values",1,d.values[0]+1),a(w).slider("values",2,Math.min(d.values[0]+1,d.values[2]))),e=!1):d.values[2]<=d.values[0]?(a(w).slider("values",2,d.values[0]),a(d.handle).hasClass("VLplayer-slider-clipping-handle")||(e=!1)):d.values[2]>=d.values[1]&&(a(w).slider("values",
  2,d.values[1]),a(d.handle).hasClass("VLplayer-slider-clipping-handle")||(e=!1));0!=b.prop("networkState")&&b.trigger("pause");a(ha).html(T(G)).parent().attr("aria-valuetext",U(G));e?(a(d.handle).attr("aria-valuetext",U(d.value-B)).find(".ui-handle-tooltip").html(T(d.value-B)),a(w).find(".ui-slider-handle").eq(2).attr("aria-valuetext",U(d.values[2]-B)).find(".ui-handle-tooltip").html(T(d.values[2]-B))):a(d.handle).attr("aria-valuetext",U(a(w).slider("values",2)-B)).find(".ui-handle-tooltip").html(T(a(w).slider("values",
  2)-B));a(w).hasClass("VLplayer-time-slider-clipping")?a(w).find(".ui-slider-range").css({width:(d.values[1]-d.values[0])/G*100+"%",left:(d.values[0]-B)/G*100+"%"}):a(w).find(".ui-slider-range").css({width:(d.values[2]-B)/G*100+"%",left:0});ea&&Na();a(w).find(".ui-handle-tooltip").each(function(){a(this).position({my:"center bottom",at:"center top",of:a(this).parent()})});return e},stop:function(d,e){a(c).find(".VLplayer-timeline-wrapper").hide();a(e.handle).hasClass("VLplayer-slider-clipping-handle")&&
  0<a(c).find(".VLplayer-create-clip").length&&(a(c).find(".VLplayer-create-clip input[name='start']").val(e.values[0]-B),a(c).find(".VLplayer-create-clip input[name='stop']").val(e.values[1]-B),ra()?a(c).find(".VLplayer-clip-submit").removeClass("VLplayer-button-disabled").removeAttr("disabled"):a(c).find(".VLplayer-clip-submit").addClass("VLplayer-button-disabled").attr("disabled","disabled"));if(e.values[2]!=ta)if(0==b.prop("networkState")){for(var f=I.length-1;0<=f;f--)if(e.values[2]>I[f]){K=f;
  b.html('<source src="'+D[f].toString()+'">');b.trigger("load");break}H=e.values[2]}else{var h=K;if(h<I.length+1&&e.values[2]>I[h+1]){for(f=I.length-1;f>h;f--)if(e.values[2]>=I[f]){K=f;b.html('<source src="'+D[f].toString()+'">');b.trigger("load");break}H=e.values[2]}else if(0<h&&e.values[2]<I[h]){for(f=h-1;0<=f;f--)if(e.values[2]>=I[f]){K=f;b.html('<source src="'+D[f].toString()+'">');b.trigger("load");break}H=e.values[2]}else b.prop("currentTime",e.values[2]-(I[h]-E[h]));a(c).find(".VLplayer-cc p").html("")}a(c).find(".VLplayer-playpause").hasClass("pause")&&
  b.trigger("play");a(e.handle).attr("aria-valuetext",U(e.value-B)).find(".ui-handle-tooltip").html(T(e.value-B));a(w).find(".ui-slider-handle").eq(2).attr("aria-valuetext",U(e.values[2]-B)).find(".ui-handle-tooltip").html(T(e.values[2]-B));a(w).hasClass("VLplayer-time-slider-clipping")?a(w).find(".ui-slider-range").css({width:(e.values[1]-e.values[0])/G*100+"%",left:(e.values[0]-B)/G*100+"%"}):a(w).find(".ui-slider-range").css({width:(e.values[2]-B)/G*100+"%",left:0});a(w).find(".ui-handle-tooltip").each(function(){a(this).position({my:"center bottom",
  at:"center top",of:a(this).parent()})})},change:function(b,c){a(c.handle).attr("aria-valuetext",U(c.value-B)).find(".ui-handle-tooltip").html(T(c.value-B));a(w).find(".ui-slider-handle").eq(2).attr("aria-valuetext",U(c.values[2]-B)).find(".ui-handle-tooltip").html(T(c.values[2]-B));a(w).hasClass("VLplayer-time-slider-clipping")?a(w).find(".ui-slider-range").css({width:(c.values[1]-c.values[0])/G*100+"%",left:(c.values[0]-B)/G*100+"%"}):a(w).find(".ui-slider-range").css({width:(c.values[2]-B)/G*100+
  "%",left:0});a(w).find(".ui-handle-tooltip").each(function(){a(this).position({my:"center bottom",at:"center top",of:a(this).parent()})})}}).mousemove(function(b){var c=a(this).width(),d=a(this).offset(),e=a(this).slider("option");b=Math.round((b.clientX-d.left)/c*(e.max-e.min))+e.min;b=10*Math.ceil(b/10);ea&&Na(b)}).mouseout(function(){a(".VLplayer-timeline-wrapper").hide()});a(w).find(".ui-handle-tooltip").each(function(){a(this).position({my:"center bottom",at:"center top",of:a(this).parent()})});
  a(c).on({"touchstart touchend touchmove touchcancel":function(a){var b=a.originalEvent.changedTouches[0],c=document.createEvent("MouseEvent");c.initMouseEvent({touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"}[a.type],!0,!0,window,1,b.screenX,b.screenY,b.clientX,b.clientY,!1,!1,!1,!1,0,null);b.target.dispatchEvent(c);a.preventDefault()}},".VLplayer-time-slider, .VLplayer-volume-slider");a(c).on({"click touchend mousemove":function(a){ya(!0);return!0}});b.bind("pause",function(){if(Y)return!0;
  a(c).find(".VLplayer-playpause").hasClass("pause")&&0==a(w).find(".ui-state-active").length&&a(c).find(".VLplayer-playpause").removeClass("pause").addClass("play").attr("aria-label","Play");ya(!1);return!0});b.bind("play",function(){if(Y)return!0;b.prop("currentTime")<E[K]?(b.prop("currentTime",E[K]),0==X&&(X=2)):2==X&&(X=0,a(c).find(".VLplayer-loading").fadeOut("fast"),a(c).find(".VLplayer-playpause").removeClass("VLplayer-playpause-disabled").removeAttr("disabled"));a(c).find(".VLplayer-playpause").hasClass("play")&&
  a(c).find(".VLplayer-playpause").removeClass("play").addClass("pause").attr("aria-label","Pause");Da&&sa();Ga(!1);0!=X&&a(c).find(".VLplayer-loading").fadeIn("fast").find("span").text("Buffering...");return!0});b.bind("timeupdate",function(){if(Y)return!0;var d=K;if(0==d&&b.prop("currentTime")<B){if(b.prop("seeking"))return b.prop("currentTime",B),!1;b.prop("paused")||(a(w).find(".ui-slider-handle").eq(2).attr("aria-valuetext",U(0-B)).find(".ui-handle-tooltip").html(T(0)),a(w).find(".ui-handle-tooltip").each(function(){a(this).position({my:"center bottom",
  at:"center top",of:a(this).parent()})}),a(ha).html(T(G)).parent().attr("aria-valuetext",U(G)))}if(d==I.length-1&&b.prop("currentTime")+(I[d]-E[d])>N){if(b.prop("seeking"))return b.prop("currentTime",N),!1;if(!b.prop("paused"))return b.trigger("pause"),K=0,a(w).slider("values",2,B),b.html('<source src="'+D[0]+'">'),b.trigger("load"),H=B,!0}if(a(w).hasClass("VLplayer-time-slider-clipping")&&b.prop("currentTime")+(I[d]-E[d])>a(w).slider("values",1)){if(b.prop("seeking"))return!1;if(!b.prop("paused")){b.trigger("pause");
  if(0<d&&a(w).slider("values",0)<I[d])for(var e=d-1;0<=e;e--){if(a(w).slider("values",0)>I[e]){K=e;a(w).slider("values",2,a(w).slider("values",0));b.html('<source src="'+D[e].toString()+'">');b.trigger("load");H=a(w).slider("values",0)-(I[e]-E[e]);break}}else b.prop("currentTime",a(w).slider("values",0)-(I[d]-E[d]));return!0}}if(0>H){e=Math.floor(b.prop("currentTime"))+(I[d]-E[d]);d=parseFloat(b.prop("currentTime"))+(I[d]-E[d]);if(a(b).hasClass("VLplayer-video-seeking"))a(b).removeClass("VLplayer-video-seeking");
  else if(a(w).slider("values",2,e),a(w).find(".ui-slider-handle").eq(2).attr("aria-valuetext",U(e-B)).find(".ui-handle-tooltip").html(T(Math.floor(e-B))),a(w).find(".ui-handle-tooltip").each(function(){a(this).position({my:"center bottom",at:"center top",of:a(this).parent()})}),a(c).find(".VLplayer-cc").is(":visible")&&!a(c).find(".VLplayer-cc-form").is(":visible")&&0<na.length){for(e=Ia;na[e].begin>d&&0<e;)e--;for(;na[e].end<d&&e<na.length-1;)e++;e!=Ia&&(a(c).find(".VLplayer-cc p").html(na[e].text),
  Ia=e)}a(ha).html(T(G)).parent().attr("aria-valuetext",U(G))}clearTimeout(z);z=setTimeout(function(){a(c).find(".VLplayer-playpause").hasClass("pause")&&parseFloat(b.prop("currentTime"))>parseFloat(b.prop("duration"))-2&&b.trigger("ended")},100);return!0});b.bind("loadstart",function(){0<E[0]&&(X=2,a(c).find(".VLplayer-loading").fadeIn("fast").find("span").text("Buffering..."));return!0});b.bind("canplay",function(){if(Y)return!0;clearTimeout(va);if(0>H||0!=e.autoStart)X=0,a(c).find(".VLplayer-loading").fadeOut("fast");
  var d=K;"function"==typeof transCallback&&(clearInterval(transTimer),setTimeout(function(){transTimer=setInterval(transCallback,5E3)},3E3));0<e.autoStart&&(H=e.autoStart,e.autoStart=0);if(0<=H)for(setTimeout(function(){H=-1},5E3);0<=H;)a(w).slider("values",2,H),b.prop("currentTime",H-I[d]+E[d]),15>Math.abs(parseInt(b.prop("currentTime")-(H-I[d]+E[d]),10))&&(H=-1,X=0,a(c).find(".VLplayer-loading").fadeOut("fast"),a(c).find(".VLplayer-playpause").removeClass("VLplayer-playpause-disabled").removeAttr("disabled"));
  return!0});b.bind("loadeddata",function(){if(Y)return!0;a(c).find(".VLplayer-loading").fadeOut("fast")});b.bind("loadedmetadata",function(){return!0});b.bind("ended",function(){if(Y)return!0;var d=K;d<I.length-1?(b.trigger("pause"),K=d+1,H=I[d+1],a(w).slider("values",2,I[d+1]-E[d+1]),b.html('<source src="'+D[d+1].toString()+'">'),b.trigger("load"),b.trigger("play")):(b.trigger("pause"),K=0,H=B,a(w).slider("values",2,B),b.html('<source src="'+D[0].toString()+"#t="+B+'">'),b.trigger("load"),a(c).find(".VLplayer-cc p").html(""));
  return!1});b.bind("waiting",function(){if(Y)return!0;if(2>=b.prop("readyState")){if(2==b.prop("networkState")||3==b.prop("networkState"))X=1,a(c).find(".VLplayer-playpause").hasClass("pause")&&a(c).find(".VLplayer-loading").fadeIn("fast").find("span").text("Buffering...");2==b.prop("networkState")&&(clearTimeout(va),va=setTimeout(Pa,3E4))}return!0});b.bind("stalled",function(){if(Y)return!0;clearTimeout(va);va=setTimeout(Pa,1E4);return!0});a(c).on({click:function(){0==b.prop("networkState")||void 0===
  b.prop("networkState")?(b.html('<source src="'+D[0]+'">'),b.trigger("play")):b.prop("paused")?b.trigger("play"):b.trigger("pause")}},".VLplayer-playpause");n=!0}function ka(b){D=[];E=[];I=[];P=[];O=[];B=0;H=-1;var d=K=0;if(e.basicHTML||e.live)u=t=v=!0;b=a("div#video-embed").width();a.ajax({type:"GET",url:S,dataType:"json",data:{width:b},success:function(b){if(b&&"Success"==b.video["@status"]&&1==b.video.files.length&&0==parseInt(b.video.files[0].offset["#text"],10)){D[0]=b.video.files[0].path["#text"];
  E[0]=parseInt(b.video.files[0].offset["#text"],10);P[0]=parseInt(b.video.files[0].length["#text"],10);if("undefined"!==typeof b.video.files[0].qualities){qualities=[];for(var e in b.video.files[0].qualities){var f=b.video.files[0].qualities[e].file["#text"].replace("&amp;","&"),h=parseInt(b.video.files[0].qualities[e].height["#text"]),g=parseInt(b.video.files[0].qualities[e].bitrate["#text"]);if("undefined"!=typeof b.video.files[0].qualities[e].profile&&"undefined"!=typeof b.video.files[0].qualities[e].level)var k=
  b.video.files[0].qualities[e].profile["#text"],l=b.video.files[0].qualities[e].level["#text"];else l=k="";qualities[e]={file:f,height:h,bitrate:g,profile:k,level:l}}O[0]=qualities}B=E[0];I[0]=B;N=d+=P[0];G=N-B;H=B;e="";b.video.poster&&(e=b.video.poster["#text"]);t=!0;b.video.twurl&&(za=b.video.twurl["#text"]);b.video.fburl&&(ia=b.video.fburl["#text"]);b.video.saveurl&&(ua=b.video.saveurl["#text"]);b.video.shareurl?ja=b.video.shareurl["#text"]:u=!0;b.video.embedcode?(Ba=b.video.embedcode["#text"],
  b.video.embediframe&&(Ca=b.video.embediframe["#text"])):C=!0;pa(e)}else return b=b.video.error?b.video.error["#text"]:"This video is currently unavailable for this device.",0<a(c).find(".VLplayer-error-message").length?a(c).find(".VLplayer-error-message").append("<br/>"+b):a(c).append("<div class='VLplayer-error-message'>\n"+b+"</div>\n"),a(c).addClass("VLplayer-failed"),!1}})}function pa(e){a(c).append("<video class='VLplayer-video' poster='"+e+"' controls></video>\n");a(c).addClass("VLplayer-mobile-player");
  b=a(c).find("video");u||Fa();if(-1!=a.inArray(d,["ios-mobile"]))if(0<O.length){e="https://static.c-span.org/assets/documents/grimalkin?n="+(new Date).getTime();var f,h;f=(new Date).getTime();a("#bandwidth").load(e,function(){h=(new Date).getTime();F=(4194304/((h-f)/1E3)/1024).toFixed(0);ma();b.html('<source src="'+D[0]+"#t="+B+'">')})}else b.html('<source src="'+D[0]+"#t="+B+'">');Ea();n=!0;b.bind("play",function(){Da&&sa();return!0})}function T(a){if(0>=a)return"00:00";var b="",c=parseInt(parseInt(a)/
  3600);c&&(b+=(10<=c?c.toString():"0"+c.toString())+":");c=parseInt(parseInt(a)%3600/60);b+=(10<=c?c.toString():"0"+c.toString())+":";a=parseInt(a)%60;return b+=10<=a?a.toString():"0"+a.toString()}function U(a){if(0>=a)return"0 seconds";var b="",c=parseInt(parseInt(a)/3600);0<c&&(b+=c.toString()+" hour"+(1!=c?"s":"")+", ");var d=parseInt(parseInt(a)%3600/60);if(0<c||0<d)b+=d.toString()+" minute"+(1!=d?"s":"")+", ";a=parseInt(a)%60;return b+=a.toString()+" second"+(1!=a?"s":"")}function ra(){return""==
  a(c).find(".VLplayer-create-clip input[name='title']").val()||a(c).find(".VLplayer-create-clip input[name='title']").val()==a(c).find(".VLplayer-create-clip input[name='title']").attr("title")||""==a(c).find(".VLplayer-create-clip textarea[name='description']").val()||a(c).find(".VLplayer-create-clip textarea[name='description']").val()==a(c).find(".VLplayer-create-clip textarea[name='description']").attr("title")||0==a(c).find(".VLplayer-create-clip input[name='start']").val()||a(c).find(".VLplayer-create-clip input[name='stop']").val()==
  G||a(c).find(".VLplayer-create-clip input[name='start']").val()==a(c).find(".VLplayer-create-clip input[name='stop']").val()?!1:!0}function ma(){var b=[];switch(d){case "html":b={profile:["baseline","main","high"],level:["3.0","3.1","4.1"]};break;case "android":case "android-mobile":b={profile:["baseline"],level:["3.0"]};break;case "ios":b=-1<navigator.userAgent.search(/iPad[^OS]+OS (7|8)/i)?{profile:["baseline","main","high"],level:["3.0","3.1","4.1"]}:{profile:["baseline","main"],level:["3.0","3.1"]};
  break;case "ios-mobile":-1<navigator.userAgent.search(/(iPhone|iPod)[^OS]+OS 7/i)?b={profile:["baseline","main"],level:["3.0","3.1"]}:-1<navigator.userAgent.search(/(iPhone|iPod)[^OS]+OS 8/i)&&(b={profile:["baseline","main","high"],level:["3.0","3.1","4.1"]})}for(var c,e=a("video.VLplayer-video").height(),f=0;f<O.length;f++){qualities=O[f];for(var h=0,g=0;g<qualities.length;g++)if(qualities[g].bitrate<h||0==h)h=qualities[g].bitrate,D[f]=qualities[g].file;maxHeightsArr=[];for(g=0;g<qualities.length;g++)0<
  qualities[g].profile.length&&0<qualities[g].level.length&&(-1==a.inArray(qualities[g].profile,b.profile)||-1==a.inArray(qualities[g].level,b.level))||(qualities[g].height<=e&&qualities[g].bitrate<=F&&!x&&"ios-mobile"!=d?maxHeightsArr.push(qualities[g].height):(x||"ios-mobile"==d)&&qualities[g].bitrate<=F&&maxHeightsArr.push(qualities[g].height));c=Math.max.apply(Math,maxHeightsArr);for(g=h=0;g<qualities.length;g++)qualities[g].height==c&&qualities[g].bitrate>h&&(D[f]=qualities[g].file,h=qualities[g].bitrate)}}
  function oa(){x?(l=a(window).width(),k=h=a(window).height()):"auto"===e.width?"auto"===e.height?(l=Math.min(a(c).width(),1024),k=Math.min(Math.floor(l/wa),a(window).height()-m),h=k+m,"flash"==d&&a(c).css({height:h+"px"})):(h=e.height,k=h-m,l=Math.min(Math.floor(k*wa),1024)):"auto"===e.height?(l=Math.min(e.width,1024),k=Math.min(Math.floor(l/wa),a(window).height()-m),h=k+m,"flash"==d&&a(c).css({height:h+"px"})):(l=Math.min(e.width,1024),h=e.height,k=h-m);e.live||"ios"!=d&&"android"!=d&&"html"!=d&&
  "android-mobile"!=d||xa();(e.live||"ios-mobile"==d)&&Ea();"ios-mobile"!=d&&"flash"!=d&&(ma(),clearTimeout(M),M=setTimeout(function(){var e=a("video.VLplayer-video source").attr("src"),e=e.match(/[a-z0-9_.-]+MP4[a-z0-9_.-]+/i);null==e&&(e=[""]);var f=D[K],f=f.match(/[a-z0-9_.-]+MP4[a-z0-9_.-]+/i);null==f&&(f=[""]);var h=a("video.VLplayer-video").get(0).currentTime;if(e[0]!=f[0])if(b.html('<source src="'+D[K].toString()+"#t="+h+'">'),b.trigger("load"),"ios"!=d&&-1==navigator.userAgent.indexOf("Trident"))a(c).find(".VLplayer-playpause").hasClass("pause")&&
  b.trigger("play");else{var g=function(){b.get(0).currentTime=h;a(c).find(".VLplayer-playpause").hasClass("pause")&&b.trigger("play");b.unbind("canplay",g)};b.on("canplay",g)}},1E3))}function xa(){a(c).find("video").css({width:l+"px",height:k+"px"});var d=a(c).find(".VLplayer-controls ul").width();0>=d&&(a(c).find(".VLplayer-controls").css({visibility:"hidden",display:"block"}),d=a(c).find(".VLplayer-controls ul").width(),a(c).find(".VLplayer-controls").css({visibility:"",display:"none"}));d=l-100-
  d;a(w).parent().css({width:d+"px"});a(w).css({width:d-20+"px"});a(c).find(".VLplayer-controls").css({bottom:h-k+"px"});a(c).find(".VLplayer-loading").css({left:l/2-50+"px",top:k/2-25+"px"});a(c).find("form:visible").position({my:"center top",at:"center top",of:a(b)})}function Ea(){a(c).find("video").css({width:l+"px",height:k+"px"});0<a(c).find(".VLplayer-ios-video-placeholder").length&&a(c).find(".VLplayer-ios-video-placeholder").css({width:l+"px",height:k+"px"})}function Fa(){a(c).append("<div class='VLplayer-sharing-options'>\n<ul class='share'><li class='title'><span>Share This Video</span></li>"+
  (za?"<li><a data-shareoption='external' target='_blank' href='"+za+"' aria-label='Share via Twitter' tabindex='12'><i class='icon-twitter'></i></a></li>":"")+(ia?"<li><a data-shareoption='external' target='_blank' href='"+ia+"' aria-label='Share via Facebook' tabindex='13'><i class='icon-facebook'></i></a></li>":"")+(ja?"<li><a data-shareoption='link' href='#' aria-label='Link to Video' tabindex='14'><i class='icon-share'></i></a></li>":"")+"</ul><ul class='save'>"+(!t&&V?"<li><a data-shareoption='clip' href='#' aria-label='Clip' tabindex='9'><i class='icon-scissors'></i><span>Clip</span></a></li>":
  "")+(ua?"<li><a data-shareoption='bookmark' target='_blank' href='"+ua+"' aria-label='Bookmark To MyC-SPAN' tabindex='10'><i class='icon-bookmark-2'></i><span>Bookmark To MyC-SPAN</span></a></li>":"")+(C?"":"<li><a data-shareoption='embed' href='#' aria-label='Embed Video' tabindex='11'><i class='icon-code'></i><span>Embed</span></a></li>")+"</ul></div>\n");C||a(c).append("<form class='VLplayer-option-form VLplayer-option-form-embed' action='' method='get'>\n<a class='VLplayer-option-form-close' aria-label='Close'><i class='icon-cancel-circle'></i></a>\n<h3>Embed Video</h3>\n<span>Copy the embed code below and paste it into your website or blog.</span>\n</span>\n<label>Embed Code\n<textarea class='VLplayer-share-input VLplayer-readonly-input' name='embed-new'>"+
  Ca+"</textarea>\n</label>\n<label>Old Embed Code (Flash Only)\n<textarea class='VLplayer-share-input VLplayer-readonly-input' name='embed'>"+Ba+"</textarea>\n</label>\n</form>\n");!t&&V&&(a(c).append("<form class='VLplayer-create-clip' action='"+Ja+"' method='post'>\n<a class='VLplayer-option-form-close' aria-label='Close'><i class='icon-cancel-circle'></i></a>\n<h3>Create Clip</h3>\n<input type='hidden' name='createClip' value='1'/>\n<input type='hidden' name='programid' value='"+V+"'/>\n<input type='hidden' name='start' value='0'/>\n<input type='hidden' name='stop' value='"+
  G+"'/>\n<input type='hidden' name='fromClipid' value='0'/><input type='hidden' name='clippingUbeg' value='0'/><input type='hidden' name='airingid' value='0'/><button class='VLplayer-clip-set-start'>Set In</button>\n<button class='VLplayer-clip-set-end'>Set Out</button>\n<input class='VLplayer-create-clip-input show-title' type='text' name='title' value='Enter Your Clip Title' title='Enter Your Clip Title'/>\n<textarea class='VLplayer-create-clip-input show-title' name='description' title='Enter Your Clip Description'>Enter Your Clip Description</textarea>\n<button class='VLplayer-clip-submit VLplayer-button-disabled' type='submit' disabled='disabled'>Save Clip</button>\n</form>\n"),
  e.clipid&&0<e.clipid&&a(c).find(".VLplayer-create-clip input[name='fromClipid']").val(e.clipid),Aa&&0<Aa?a(c).find(".VLplayer-create-clip input[name='clippingUbeg']").val(Aa):a(c).find(".VLplayer-create-clip input[name='clippingUbeg']").remove(),e.airingid&&0<e.airingid?a(c).find(".VLplayer-create-clip input[name='airingid']").val(e.airingid):a(c).find(".VLplayer-create-clip input[name='airingid']").remove(),a(c).on({focus:function(){a(this).hasClass("show-title")&&a(this).removeClass("show-title").val("")},
  blur:function(){""==a(this).val()&&a(this).addClass("show-title").val(a(this).attr("title"))},keyup:function(){ra()?a(c).find(".VLplayer-clip-submit").removeClass("VLplayer-button-disabled").removeAttr("disabled"):a(c).find(".VLplayer-clip-submit").addClass("VLplayer-button-disabled").attr("disabled","disabled")}},".VLplayer-create-clip-input"),a(c).on({submit:function(){if(!ra()||a(this).hasClass("VLplayer-option-form-loading"))return!1;if("function"==typeof VLCreateClip){var d=a(this).find("input[name='start']").val(),
  e=a(this).find("input[name='stop']").val(),f=a(this).find("input[name='title']").val(),h=a(this).find("textarea[name='description']").val(),g=a(this).find("input[name='fromClipid']").val();VLCreateClip(f,h,d,e,g);return!1}a(this).addClass("VLplayer-option-form-loading");var k=a(this),d=a(this).serialize()+"&ajax=1";a.ajax({type:"POST",url:Ja,data:d,success:function(d){a(k).removeClass("VLplayer-option-form-loading");if((d=d.match(/^(\d+)\|(http.+)$/))&&3==d.length){var e=window.open(d[2]+"&newClip",
  "VideoLibraryNewClip");if(null==e||"undefined"==typeof e)a(c).append("<div class='VLplayer-alert'>\n<a class='VLplayer-alert-close' aria-label='Close'><i class='icon-cancel-circle'></i></a>\nYour clip has been created.<br/>\nView your clip <a href=\""+d[2]+"&newClip\" target='VideoLibraryNewClip'>here</a>.\n</div>"),a(c).find(".VLplayer-alert").show().position({my:"center top",at:"center top",of:a(b)});a(c).find(".VLplayer-option-active").each(function(){"fullscreen"!=a(this).data("videooption")&&
  a(this).click()})}}});return!1}},".VLplayer-create-clip"),a(c).on({click:function(){}},".VLplayer-clip"),a(c).on({click:function(){a(w).hasClass("VLplayer-time-slider-clipping")&&(a(c).find(".VLplayer-create-clip input[name='start']").val(a(w).slider("values",2)),a(w).slider("values",0,a(w).slider("values",2)),a(w).find(".VLplayer-slider-clipping-handle").eq(0).attr("aria-valuetext",U(a(w).slider("values",2)-B)).find(".ui-handle-tooltip").html(T(a(w).slider("values",2)-B)),a(w).find(".ui-handle-tooltip").each(function(){a(this).position({my:"center bottom",
  at:"center top",of:a(this).parent()})}));return!1}},".VLplayer-clip-set-start"),a(c).on({click:function(){a(w).hasClass("VLplayer-time-slider-clipping")&&(a(c).find(".VLplayer-create-clip input[name='stop']").val(a(w).slider("values",2)),a(w).slider("values",1,a(w).slider("values",2)),a(w).find(".ui-slider-handle").eq(1).attr("aria-valuetext",U(a(w).slider("values",2)-B)).find(".ui-handle-tooltip").html(T(a(w).slider("values",2)-B)),a(w).find(".ui-handle-tooltip").each(function(){a(this).position({my:"center bottom",
  at:"center top",of:a(this).parent()})}));return!1}},".VLplayer-clip-set-end"));ja&&a(c).append("<form class='VLplayer-option-form VLplayer-option-form-link'>\n<a class='VLplayer-option-form-close' aria-label='Close'><i class='icon-cancel-circle'></i></a>\n<h3>Share Video</h3>\n<span>Copy the Video URL below.</span>\n<input type='text' class='VLplayer-share-input VLplayer-readonly-input' name='embed' value='"+ja+"'></input>\n</form>\n");a(c).on({click:function(){if(void 0==a(this).data("shareoption"))return!1;
  switch(a(this).data("shareoption")){case "bookmark":var e=!1;"function"==typeof VLSaveProgram&&(e=VLSaveProgram());if(!e)return!0;break;case "embed":case "link":a(this).hasClass("VLplayer-option-active")?(a(this).removeClass("VLplayer-option-active"),a(c).find(".VLplayer-option-form-"+a(this).data("shareoption")).hide(),"ios-mobile"==d&&(0<a(c).find(".VLplayer-ios-video-placeholder").length&&a(c).find(".VLplayer-ios-video-placeholder").remove(),a(b).show())):(b.trigger("pause"),a(c).find(".VLplayer-option-active").each(function(){a(this).click()}),
  a(this).addClass("VLplayer-option-active"),a(c).find(".VLplayer-option-form-"+a(this).data("shareoption")).show().position({my:"center top",at:"center top",of:a(b)}),"ios-mobile"==d&&(a(c).prepend("<div class='VLplayer-ios-video-placeholder'></div>"),a(c).find(".VLplayer-ios-video-placeholder").css("height",k+"px"),a(b).hide()));break;case "clip":a(this).hasClass("VLplayer-option-active")?(a(w).removeClass("VLplayer-time-slider-clipping"),a(w).find(".VLplayer-slider-clipping-handle").addClass("ui-slider-handle-disabled"),
  a(this).removeClass("VLplayer-option-active"),a(c).find(".VLplayer-create-clip").hide(),a(c).find(".VLplayer-create-clip input[name='start']").val(0),a(c).find(".VLplayer-create-clip input[name='stop']").val(G),a(w).slider("values",0,B),a(w).slider("values",1,N),a(w).find(".ui-slider-handle").eq(0).attr("aria-valuetext",U(0-B)).find(".ui-handle-tooltip").html(T(0)),a(w).find(".ui-slider-handle").eq(1).attr("aria-valuetext",U(G-B)).find(".ui-handle-tooltip").html(T(G)),a(w).find(".ui-slider-range").css({width:(a(w).slider("values",
  2)-B)/G*100+"%",left:0}),a(w).find(".ui-handle-tooltip").each(function(){a(this).position({my:"center bottom",at:"center top",of:a(this).parent()})})):(b.trigger("pause"),a(c).find(".VLplayer-option-active").each(function(){a(this).click()}),a(w).addClass("VLplayer-time-slider-clipping"),a(w).find(".VLplayer-slider-clipping-handle").removeClass("ui-slider-handle-disabled"),a(this).addClass("VLplayer-option-active"),a(c).find(".VLplayer-create-clip").show().position({my:"center top",at:"center top",
  of:a(b)}),a(w).find(".ui-slider-range").css({width:(a(w).slider("values",1)-a(w).slider("values",0))/G*100+"%",left:(a(w).slider("values",0)-B)/G*100+"%"}),a(w).find(".ui-handle-tooltip").each(function(){a(this).position({my:"center bottom",at:"center top",of:a(this).parent()})}),ya(!1));break;case "external":return!0}return!1}},".VLplayer-sharing-options ul li a");a(c).on({submit:function(){return!1}},".VLplayer-option-form");a(c).on({click:function(b){b.preventDefault();a(c).find(".VLplayer-option-active").each(function(){"fullscreen"!=
  a(this).data("videooption")&&a(this).click()})}},".VLplayer-option-form-close");a(c).on({change:function(a){a.preventDefault();return!1}},".VLplayer-readonly-input");a(c).on({click:function(b){b.preventDefault();a(c).find(".VLplayer-alert").remove()}},".VLplayer-alert-close")}function Ma(){R&&0<a(c).find(".VLplayer-cc-form").length&&a.ajax({type:"GET",url:R,dataType:"xml",xhrFields:{withCredentials:!0},success:function(b){if(0<a(b).find("tt body div p").length){var d=0;a(b).find("tt body div p").each(function(){a(this).find("br").replaceWith("\n");
  na[d]={begin:a(this).attr("begin"),end:a(this).attr("end"),text:a(this).text()};d++})}0<na.length&&a(c).find(".VLplayer-cc-button").removeClass("VLplayer-button-disabled").removeAttr("disabled")}})}function Pa(){if(2==b.prop("networkState")&&2>=b.prop("readyState")){var d=!1;a(c).find(".VLplayer-playpause").hasClass("pause")&&(b.trigger("pause"),d=!0);H=b.prop("currentTime");b.html('<source src="'+D[K].toString()+'">');b.trigger("load");d&&b.trigger("play")}}function Na(b){b=b||-1;if(0>b)var d=a(w).slider("values",
  2)-B-Math.floor(a(c).find(".VLplayer-timeline-thumbs .VLplayer-timeline-thumb").length/2)*W;else 0<=b&&(d=b-B-Math.floor(a(c).find(".VLplayer-timeline-thumbs .VLplayer-timeline-thumb").length/2)*W);a(c).find(".VLplayer-timeline-thumbs .VLplayer-timeline-thumb").each(function(){if(0>d||d+B>N)a(this).addClass("VLplayer-timeline-thumb-hidden").css({backgroundPosition:Z+"px "+ba+"px"});else{var b=ba,c=Z,e=Math.floor(d/(10*W))*-ba,f=Math.floor(d%(10*W)/W)*-Z;a(this).hasClass("VLplayer-timeline-thumb-selected")||
  (b=Math.floor(.8*b),c=Math.floor(.8*c),e-=Math.floor((ba-b)/2),f-=Math.floor((Z-c)/2));a(this).removeClass("VLplayer-timeline-thumb-hidden").css({backgroundPosition:f+"px "+e+"px",height:b+"px",width:c+"px"})}d+=W});a(c).find(".VLplayer-timeline-wrapper").is(":visible")||(a(c).find(".VLplayer-timeline-wrapper").css({height:ba+10+"px"}).show().position({my:"left bottom",at:"left top",of:a(c).find(".VLplayer-controls")}),a(c).find(".VLplayer-timeline-thumbs").css({width:a(c).find(".VLplayer-timeline-thumbs .VLplayer-timeline-thumb").length*
  Z+"px"}).position({my:"center center",at:"center center",of:a(c).find(".VLplayer-timeline-wrapper")}))}function Ga(d){var e=3E3;d&&(e=0);clearTimeout(Ka);Ka=setTimeout(function(){if(d||!a(w).hasClass("VLplayer-time-slider-clipping")&&!b.prop("paused")&&!b.prop("seeking"))a(c).find(".VLplayer-controls").fadeOut("fast"),a(c).find(".VLplayer-option-active").each(function(){"fullscreen"!=a(this).data("videooption")&&a(this).click()})},e)}function ya(b){Y||(clearTimeout(Ka),a(c).find(".VLplayer-controls").fadeIn("fast",
  function(){b&&Ga(!1)}))}function sa(){Da=!1;Y=!0;"html"!=d&&"ios-mobile"!=d&&Ga(!0);a(c).append("<div class='VLplayer-dfp-container'></div>");ca=new google.ima.AdDisplayContainer(a(c).find(".VLplayer-dfp-container").get(0),a(b).get(0));ca.initialize();La=new google.ima.AdsLoader(ca);La.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,aa,!1);var e=new google.ima.AdsRequest;e.adTagUrl="http://pubads.g.doubleclick.net/gampad/ads?sz=1024x576&iu=/52143677/CspanPrerollVideos&ciu_szs&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]";
  e.linearAdSlotWidth=l;e.linearAdSlotHeight=k;e.nonLinearAdSlotWidth=l;e.nonLinearAdSlotHeight=k;La.requestAds(e)}function aa(c){la=c.getAdsManager(a(b).get(0));la.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,da);la.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,Q);la.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,Q);la.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,Q);try{la.init(l,k,google.ima.ViewMode.NORMAL),la.start()}catch(d){Ha()}}function Q(a){a.getAd();
  switch(a.type){case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:Ha();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:"html"==d&&(Y=!0,Ga(!0),b.trigger("pause"));break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:"html"==d&&(Y=!1,ya(!0),b.trigger("play"))}}function da(a){console.log(a.getError());Ha()}function Ha(){la.destroy();ca.destroy();a(c).find(".VLplayer-dfp-container").remove();"html"!=d&&(Y=!1,b.removeAttr("src"),"ios-mobile"!=d&&ya(!0),b.trigger("play"))}f=a.extend({},a.fn.VLplayer.defaults,
  f);return function(b){c=b;a(c).addClass("VLplayer-wrapper");e=f;Y=Da=n=!1;g(!1);Oa();return this}(this)};a.fn.VLplayer.getTime=function(){try{return n&&b?"flash"==d?b.getTime():parseInt(b.prop("currentTime"))+(I[K]-E[K])-B:!1}catch(a){return!1}};a.fn.VLplayer.seek=function(c){try{if("flash"==d)b&&b.seek(c);else{var e=K;c+=B;if(0==b.prop("networkState"))for(var f=I.length-1;0<=f;f--){if(c>I[f]){K=f;b.html('<source src="'+D[f].toString()+'">');a(w).slider("values",2,c);b.trigger("load");break}}else if(N>=
  c&&B<=c)if(e<I.length+1&&c>I[e+1]){for(f=I.length-1;f>e;f--)if(c>I[f]){K=f;b.html('<source src="'+D[f].toString()+'">');b.trigger("load");break}H=c}else if(0<e&&c<I[e]){for(f=e-1;0<=f;f--)if(c>I[f]){K=f;b.html('<source src="'+D[f].toString()+'" type="video/mp4">');b.trigger("load");break}H=c}else b.prop("currentTime",c-(I[e]-E[e]));b.trigger("play");return!1}}catch(h){}};a.fn.VLplayer.showEditView=function(){try{return n&&b?"flash"==d?(b.showEditView(),!0):a(c).find(".VLplayer-clip").length&&!a(c).find(".VLplayer-clip").hasClass("VLplayer-button-active")?
  (a(c).find(".VLplayer-clip").click(),!0):!1:!1}catch(e){return!1}};a.fn.VLplayer.addClipResult=function(e){try{return n&&b?"flash"==d?(b.addClipResult(e),!0):0<a(c).find(".VLplayer-create-clip input[name='fromClipid']").length?(a(c).find(".VLplayer-create-clip input[name='fromClipid']").val(e),!0):!1:!1}catch(f){return!1}};a.fn.VLplayer.defaults={playerType:"auto",flashPlayer:!1,width:646,height:528,progid:!1,appid:!1,clipid:!1,eventid:!1,playlistid:!1,transcid:!1,personid:!1,start:!1,end:!1,network:!1,
  live:!1,startOffset:0,endOffset:0,noShare:!1,noOptions:!1,noClip:!1,noStandalone:!1,autoPlay:!1,autoStart:0,privateHash:!1,embedded:!1,basicHTML:!1};var ma,oa,Ma=/^(none|table(?!-c[ea]).+)/,Ta=/^margin/,fa=new RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),xa={position:"absolute",visibility:"hidden",display:"block"},pa=["Top","Right","Bottom","Left"];a.cssHooks.width.get=function(a,b,c){if(b)return 0===a.offsetWidth&&Ma.test(jQuery.css(a,"display"))?jQuery.swap(a,
  xa,function(){return g(a,"width",c)}):g(a,"width",c)};a.cssHooks.height.get=function(a,b,c){if(b)return 0===a.offsetWidth&&Ma.test(jQuery.css(a,"display"))?jQuery.swap(a,xa,function(){return g(a,"height",c)}):g(a,"height",c)};a.fn.offset=function(a){if(arguments.length)return void 0===a?this:this.each(function(b){jQuery.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=(c=this[0])&&c.ownerDocument;if(e){b=e.documentElement;if(!jQuery.contains(b,c))return d;"undefined"!==typeof c.getBoundingClientRect&&
  (d=c.getBoundingClientRect(),c.offsetWidth<c.clientWidth&&(d={top:100*d.top,left:100*d.left}));c=f(e);return{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}}};window.getComputedStyle?(ma=function(a){return window.getComputedStyle(a,null)},oa=function(a,b,c){var d,e=(c=c||getStyles(a))?c.getPropertyValue(b)||c[b]:void 0,f=a.style;c&&(""!==e||jQuery.contains(a.ownerDocument,a)||(e=jQuery.style(a,b)),fa.test(e)&&Ta.test(b)&&(a=f.width,
  b=f.minWidth,d=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=c.width,f.width=a,f.minWidth=b,f.maxWidth=d));return e}):document.documentElement.currentStyle&&(ma=function(a){return a.currentStyle},oa=function(a,b,c){var d,e,f=(c=c||getStyles(a))?c[b]:void 0,h=a.style;null==f&&h&&h[b]&&(f=h[b]);if(fa.test(f)&&!rposition.test(b)){c=h.left;if(e=(d=a.runtimeStyle)&&d.left)d.left=a.currentStyle.left;h.left="fontSize"===b?"1em":f;f=h.pixelLeft+"px";h.left=c;e&&(d.left=e)}return""===f?"auto":f})})(jQuery);var swfobject=function(){function a(){if(!P){try{var a=v.getElementsByTagName("body")[0].appendChild(v.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}P=!0;for(var a=L.length,c=0;c<a;c++)L[c]()}}function g(a){P?a():L[L.length]=a}function f(a){if("undefined"!=typeof C.addEventListener)C.addEventListener("load",a,!1);else if("undefined"!=typeof v.addEventListener)v.addEventListener("load",a,!1);else if("undefined"!=typeof C.attachEvent)q(C,"onload",a);else if("function"==typeof C.onload){var b=
  C.onload;C.onload=function(){b();a()}}else C.onload=a}function c(){var a=v.getElementsByTagName("body")[0],c=v.createElement("object");c.setAttribute("type","application/x-shockwave-flash");var d=a.appendChild(c);if(d){var e=0;(function(){if("undefined"!=typeof d.GetVariable){var f=d.GetVariable("$version");f&&(f=f.split(" ")[1].split(","),z.pv=[parseInt(f[0],10),parseInt(f[1],10),parseInt(f[2],10)])}else if(10>e){e++;setTimeout(arguments.callee,10);return}a.removeChild(c);d=null;b()})()}else b()}
  function b(){var a=J.length;if(0<a)for(var b=0;b<a;b++){var c=J[b].id,f=J[b].callbackFn,g={success:!1,id:c};if(0<z.pv[0]){var l=n(c);if(l)if(!r(J[b].swfVersion)||z.wk&&312>z.wk)if(J[b].expressInstall&&d()){g={};g.data=J[b].expressInstall;g.width=l.getAttribute("width")||"0";g.height=l.getAttribute("height")||"0";l.getAttribute("class")&&(g.styleclass=l.getAttribute("class"));l.getAttribute("align")&&(g.align=l.getAttribute("align"));for(var m={},l=l.getElementsByTagName("param"),p=l.length,q=0;q<
  p;q++)"movie"!=l[q].getAttribute("name").toLowerCase()&&(m[l[q].getAttribute("name")]=l[q].getAttribute("value"));h(g,m,c,f)}else k(l),f&&f(g);else u(c,!0),f&&(g.success=!0,g.ref=e(c),f(g))}else u(c,!0),f&&((c=e(c))&&"undefined"!=typeof c.SetVariable&&(g.success=!0,g.ref=c),f(g))}}function e(a){var b=null;(a=n(a))&&"OBJECT"==a.nodeName&&("undefined"!=typeof a.SetVariable?b=a:(a=a.getElementsByTagName("object")[0])&&(b=a));return b}function d(){return!B&&r("6.0.65")&&(z.win||z.mac)&&!(z.wk&&312>z.wk)}
  function h(a,b,c,d){B=!0;E=d||null;I={success:!1,id:c};var e=n(c);if(e){"OBJECT"==e.nodeName?(F=m(e),M=null):(F=e,M=c);a.id="SWFObjectExprInst";if("undefined"==typeof a.width||!/%$/.test(a.width)&&310>parseInt(a.width,10))a.width="310";if("undefined"==typeof a.height||!/%$/.test(a.height)&&137>parseInt(a.height,10))a.height="137";v.title=v.title.slice(0,47)+" - Flash Player Installation";d=z.ie&&z.win?"ActiveX":"PlugIn";d="MMredirectURL="+C.location.toString().replace(/&/g,"%26")+"&MMplayerType="+
  d+"&MMdoctitle="+v.title;b.flashvars="undefined"!=typeof b.flashvars?b.flashvars+("&"+d):d;z.ie&&z.win&&4!=e.readyState&&(d=v.createElement("div"),c+="SWFObjectNew",d.setAttribute("id",c),e.parentNode.insertBefore(d,e),e.style.display="none",function(){4==e.readyState?e.parentNode.removeChild(e):setTimeout(arguments.callee,10)}());l(a,b,c)}}function k(a){if(z.ie&&z.win&&4!=a.readyState){var b=v.createElement("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(m(a),b);a.style.display="none";
  (function(){4==a.readyState?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(m(a),a)}function m(a){var b=v.createElement("div");if(z.win&&z.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName("object")[0])if(a=a.childNodes)for(var c=a.length,d=0;d<c;d++)1==a[d].nodeType&&"PARAM"==a[d].nodeName||8==a[d].nodeType||b.appendChild(a[d].cloneNode(!0));return b}function l(a,b,c){var d,e=n(c);if(z.wk&&312>z.wk)return d;if(e)if("undefined"==typeof a.id&&
  (a.id=c),z.ie&&z.win){var f="",h;for(h in a)a[h]!=Object.prototype[h]&&("data"==h.toLowerCase()?b.movie=a[h]:"styleclass"==h.toLowerCase()?f+=' class="'+a[h]+'"':"classid"!=h.toLowerCase()&&(f+=" "+h+'="'+a[h]+'"'));h="";for(var g in b)b[g]!=Object.prototype[g]&&(h+='<param name="'+g+'" value="'+b[g]+'" />');e.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+h+"</object>";D[D.length]=a.id;d=n(a.id)}else{g=v.createElement("object");g.setAttribute("type","application/x-shockwave-flash");
  for(var k in a)a[k]!=Object.prototype[k]&&("styleclass"==k.toLowerCase()?g.setAttribute("class",a[k]):"classid"!=k.toLowerCase()&&g.setAttribute(k,a[k]));for(f in b)b[f]!=Object.prototype[f]&&"movie"!=f.toLowerCase()&&(a=g,h=f,k=b[f],c=v.createElement("param"),c.setAttribute("name",h),c.setAttribute("value",k),a.appendChild(c));e.parentNode.replaceChild(g,e);d=g}return d}function p(a){var b=n(a);b&&"OBJECT"==b.nodeName&&(z.ie&&z.win?(b.style.display="none",function(){if(4==b.readyState){var c=n(a);
  if(c){for(var d in c)"function"==typeof c[d]&&(c[d]=null);c.parentNode.removeChild(c)}}else setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function n(a){var b=null;try{b=v.getElementById(a)}catch(c){}return b}function q(a,b,c){a.attachEvent(b,c);O[O.length]=[a,b,c]}function r(a){var b=z.pv;a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:!1}function x(a,b,c,d){if(!z.ie||
  !z.mac){var e=v.getElementsByTagName("head")[0];e&&(c=c&&"string"==typeof c?c:"screen",d&&(G=N=null),N&&G==c||(d=v.createElement("style"),d.setAttribute("type","text/css"),d.setAttribute("media",c),N=e.appendChild(d),z.ie&&z.win&&"undefined"!=typeof v.styleSheets&&0<v.styleSheets.length&&(N=v.styleSheets[v.styleSheets.length-1]),G=c),z.ie&&z.win?N&&"object"==typeof N.addRule&&N.addRule(a,b):N&&"undefined"!=typeof v.createTextNode&&N.appendChild(v.createTextNode(a+" {"+b+"}")))}}function u(a,b){if(K){var c=
  b?"visible":"hidden";P&&n(a)?n(a).style.visibility=c:x("#"+a,"visibility:"+c)}}function t(a){return null!=/[\\\"<>\.;]/.exec(a)&&"undefined"!=typeof encodeURIComponent?encodeURIComponent(a):a}var C=window,v=document,A=navigator,y=!1,L=[function(){y?c():b()}],J=[],D=[],O=[],F,M,E,I,P=!1,B=!1,N,G,K=!0,z=function(){var a="undefined"!=typeof v.getElementById&&"undefined"!=typeof v.getElementsByTagName&&"undefined"!=typeof v.createElement,b=A.userAgent.toLowerCase(),c=A.platform.toLowerCase(),d=c?/win/.test(c):
  /win/.test(b),c=c?/mac/.test(c):/mac/.test(b),b=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,e=!+"\v1",f=[0,0,0],h=null;if("undefined"!=typeof A.plugins&&"object"==typeof A.plugins["Shockwave Flash"])!(h=A.plugins["Shockwave Flash"].description)||"undefined"!=typeof A.mimeTypes&&A.mimeTypes["application/x-shockwave-flash"]&&!A.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(y=!0,e=!1,h=h.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),f[0]=parseInt(h.replace(/^(.*)\..*$/,
  "$1"),10),f[1]=parseInt(h.replace(/^.*\.(.*)\s.*$/,"$1"),10),f[2]=/[a-zA-Z]/.test(h)?parseInt(h.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if("undefined"!=typeof C.ActiveXObject)try{if(h=(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version"))e=!0,h=h.split(" ")[1].split(","),f=[parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10)]}catch(g){}return{w3:a,pv:f,wk:b,ie:e,win:d,mac:c}}();(function(){z.w3&&(("undefined"!=typeof v.readyState&&"complete"==v.readyState||"undefined"==
  typeof v.readyState&&(v.getElementsByTagName("body")[0]||v.body))&&a(),P||("undefined"!=typeof v.addEventListener&&v.addEventListener("DOMContentLoaded",a,!1),z.ie&&z.win&&(v.attachEvent("onreadystatechange",function(){"complete"==v.readyState&&(v.detachEvent("onreadystatechange",arguments.callee),a())}),C==top&&function(){if(!P){try{v.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}a()}}()),z.wk&&function(){P||(/loaded|complete/.test(v.readyState)?a():setTimeout(arguments.callee,
  0))}(),f(a)))})();(function(){z.ie&&z.win&&window.attachEvent("onunload",function(){for(var a=O.length,b=0;b<a;b++)O[b][0].detachEvent(O[b][1],O[b][2]);a=D.length;for(b=0;b<a;b++)p(D[b]);for(var c in z)z[c]=null;z=null;for(var d in swfobject)swfobject[d]=null;swfobject=null})})();return{registerObject:function(a,b,c,d){if(z.w3&&a&&b){var e={};e.id=a;e.swfVersion=b;e.expressInstall=c;e.callbackFn=d;J[J.length]=e;u(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){if(z.w3)return e(a)},embedSWF:function(a,
  b,c,e,f,k,m,n,p,q){var t={success:!1,id:b};z.w3&&!(z.wk&&312>z.wk)&&a&&b&&c&&e&&f?(u(b,!1),g(function(){c+="";e+="";var g={};if(p&&"object"===typeof p)for(var v in p)g[v]=p[v];g.data=a;g.width=c;g.height=e;v={};if(n&&"object"===typeof n)for(var x in n)v[x]=n[x];if(m&&"object"===typeof m)for(var y in m)v.flashvars="undefined"!=typeof v.flashvars?v.flashvars+("&"+y+"="+m[y]):y+"="+m[y];if(r(f))x=l(g,v,b),g.id==b&&u(b,!0),t.success=!0,t.ref=x;else{if(k&&d()){g.data=k;h(g,v,b,q);return}u(b,!0)}q&&q(t)})):
  q&&q(t)},switchOffAutoHideShow:function(){K=!1},ua:z,getFlashPlayerVersion:function(){return{major:z.pv[0],minor:z.pv[1],release:z.pv[2]}},hasFlashPlayerVersion:r,createSWF:function(a,b,c){if(z.w3)return l(a,b,c)},showExpressInstall:function(a,b,c,e){z.w3&&d()&&h(a,b,c,e)},removeSWF:function(a){z.w3&&p(a)},createCSS:function(a,b,c,d){z.w3&&x(a,b,c,d)},addDomLoadEvent:g,addLoadEvent:f,getQueryParamValue:function(a){var b=v.location.search||v.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(null==
  a)return t(b);for(var b=b.split("&"),c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("="))==a)return t(b[c].substring(b[c].indexOf("=")+1))}return""},expressInstallCallback:function(){if(B){var a=n("SWFObjectExprInst");a&&F&&(a.parentNode.replaceChild(F,a),M&&(u(M,!0),z.ie&&z.win&&(F.style.display="block")),E&&E(I));B=!1}}}}();function accordionNavActions(){$("#wrapper").on("click","#my-cspan-subnav li.ajaxable > a",function(a){a.preventDefault();var g=$(this).attr("href"),f=$(this).parent("li");f.offset();f.hasClass("current")?$("#ajax-content").slideUp("slow",function(){destroyAjaxContainer();unflagAllCurrent()}):0<$("#ajax-content").length?$("#ajax-content").slideUp("slow",function(){destroyAjaxContainer();unflagAllCurrent();loadAjaxFrame(f,g)}):loadAjaxFrame(f,g)});$(document).on({change:function(a){$(this).submit()}},
  "#my-cspan-filter-options")}function loadAjaxFrame(a,g){createAjaxContainer(a);a.addClass("current");$("#ajax-content").load(g+" #primary",function(){$("#ajax-content").slideDown("slow",function(){$("html, body").animate({scrollTop:a.offset().top-100},500,function(){1==!(!window.history||!history.pushState)&&window.history.pushState("","",g);$(a).hasClass("ajaxable")&&$("#ajax-content").addClass("ajaxable")})})})}function destroyAjaxContainer(){$("#ajax-container").remove()}
  function unflagAllCurrent(){$("#my-cspan-subnav li").removeClass("current")}function createAjaxContainer(a){a.after("<li id='ajax-content' class='hidden'></li>")};function addAiringNotifyAlert(){$("body").on("submit","form.notify-airing",function(){var a=$(this).attr("action"),g=$(this).serialize(),f=$(this);$(f).hasClass("notify-airing-submitting")||($(f).find(".success").hide(),$(f).find(".error").hide(),$(f).find("input[name='onVL']").is(":checked")||$(f).find("input[name='airing']").is(":checked")?($(f).addClass("notify-airing-submitting"),$.ajax({type:"POST",url:a,data:g,success:function(a){"true"==a?$(f).find(".success").show():"emailerror"==a?$(f).find(".error-email").show():
  $(f).find(".error-standard").show();$(f).removeClass("notify-airing-submitting")}})):$(f).find(".error-nooptions").show());return!1});$("body").on("change","form.notify-airing input[name='airing']",function(){$(this).is(":checked")?$(this).siblings("ul").slideDown("fast"):$(this).siblings("ul").slideUp("fast");return!0})};function ajaxFormSubmit(){$("body").on("submit","#ajax-wrapper form",function(a){a.preventDefault();a=$("#ajax-wrapper form");var g=a.attr("method"),f=a.attr("action");$.ajax({type:g,url:f,data:a.serialize(),success:function(a){"error"==a?$(".error").slideDown("slow"):addLoadingOverlay(a)}});return!1})};function bindExpandingListEvent(){$(document).on("click","fieldset.expanding-list header",function(){$(this).parent("fieldset").toggleClass("expanded");$(this).parent().hasClass("expanded")?$(this).children(".icon-chevron-down").removeClass("icon-chevron-down").addClass("icon-chevron-up"):$(this).children(".icon-chevron-up").removeClass("icon-chevron-up").addClass("icon-chevron-down")})};function buildAjaxExpander(){$("body").on("click","a.ajax",function(a){a.preventDefault();a=$(this).attr("href");var g=$("#ajax-wrapper").attr("data-contents");768<$(window).width()?1>$("#ajax-wrapper").length?createAjaxWrapper(a):a==g?destroyAjaxWrapper():addLoadingOverlay(a):document.location=a});$("body").on("click","a.ajax-close",function(a){a.preventDefault();destroyAjaxWrapper()})}
  function createAjaxWrapper(a){$("header").after("<div id='ajax-wrapper'><div id='ajax-content'></div></div>");$("#ajax-wrapper").animate({height:"140"},500,function(){addLoadingOverlay(a)})}function createContentOverlay(){1>$("#content-overlay").length&&($("#content").prepend("<div id='content-overlay' style='display: none;'></div>"),$("#content-overlay").fadeIn("slow"))}function destroyContentOverlay(){$("#content-overlay").fadeOut("slow",function(){$("#content-overlay").remove()})}
  function addLoadingOverlay(a){$("#ajax-wrapper").append("<div id='loading'></div>");$("#loading").fadeIn("slow",function(){loadAjaxContent(a)})}function loadAjaxContent(a){$("#ajax-content").load(a+" #content > .container > section",function(){$("select.dropdown").easyDropDown();$("#ajax-wrapper").attr("data-contents",a).animate({height:$("#ajax-content").height()},500,function(){createCloseButton();destroyLoadingOverlay();showOrHidePassword();createContentOverlay()})})}
  function createCloseButton(){$("#ajax-content").prepend("<a href='#' id='close-panel' class='ajax-close'><i class='icon-cancel-circle'></i></a>")}function toggleMyCSpanEditButton(){var a=$("#edit-my-cspan-profile");1==$("#edit-my-cspan-profile-fields").length?a.fadeOut("fast"):a.fadeIn("fast")}function destroyLoadingOverlay(){$("#loading").addClass("loaded").fadeOut("slow",function(){$("#loading").remove();toggleMyCSpanEditButton()})}
  function destroyAjaxWrapper(){$("#ajax-wrapper").slideUp("slow",function(){$("#ajax-wrapper").remove();toggleMyCSpanEditButton();destroyContentOverlay()})}function buildAjaxExpanderFix(){$("body").off("click","a.ajax");$("body").on("click","a.ajax",function(a){a.preventDefault();a=$(this).attr("href");var g=$("#ajax-wrapper").attr("data-contents");$(this).hasClass("my-cspan")?document.location=a:1>$("#ajax-wrapper").length?createAjaxWrapper(a):a==g?destroyAjaxWrapper():addLoadingOverlay(a)})};function channelNavHitArea(){$("ul.channels li").not(".current").click(function(a){a.preventDefault();window.location=$(this).find("a").attr("href");return!1})};function createToggleableText(){0<$(".expandable").length&&($(".expandable").each(function(){$(this).hide().prev("p").addClass("initial")}),$("p.initial > .more").bind("click",function(a){a.preventDefault();$(this).fadeOut("fast").parent("p").next(".expandable").slideDown("slow")}),$(".expandable p:last > .close").bind("click",function(a){a.preventDefault();$(this).parent("p").parent(".expandable").slideUp("slow",function(){$(this).prev("p").children("a.more").fadeIn("fast")})}))};function createVLPlayer(){if(0<$("iframe#video-iframe-embed").length&&void 0!=$("iframe#video-iframe-embed").data("iframeembedurl")){if($("iframe#video-iframe-embed").hasClass("hidden")||$("iframe#video-iframe-embed").attr("src",$("iframe#video-iframe-embed").data("iframeembedurl")),0<$("#brightcove-player-embed").length)$(document).on({click:function(a){a.preventDefault();void 0!=$(this).data("progid")?(hideBrightcovePlayer(),$("iframe#video-iframe-embed").parent().removeClass("hidden"),""==$("iframe#video-iframe-embed").attr("src")&&
  $("iframe#video-iframe-embed").attr("src",$("iframe#video-iframe-embed").data("iframeembedurl"))):void 0!=$(this).data("live")&&(showBrightcovePlayer(),$("iframe#video-iframe-embed").parent().addClass("hidden"),$("iframe#video-iframe-embed").attr("src",""));$(this).addClass("current").siblings("a.live-vod-toggle-link").removeClass("current")}},"a.live-vod-toggle-link")}else if(0<$("#video-embed").length&&!$("#video-embed").hasClass("nolegacy")){var a={width:"auto",height:"auto"};void 0!=$("#video-embed").data("fplayer")&&
  (a.flashPlayer=$("#video-embed").data("fplayer"));void 0!=$("#video-embed").data("live")&&(a.live=$("#video-embed").data("live"));void 0!=$("#video-embed").data("vidwidth")&&(a.width=$("#video-embed").data("vidwidth"));void 0!=$("#video-embed").data("vidheight")&&(a.height=$("#video-embed").data("vidheight"));void 0!=$("#video-embed").data("progid")&&(a.progid=$("#video-embed").data("progid"));void 0!=$("#video-embed").data("airingid")&&0!=$("#video-embed").data("airingid")&&(a.airingid=$("#video-embed").data("airingid"));
  void 0!=$("#video-embed").data("clipid")&&(a.clipid=$("#video-embed").data("clipid"));void 0!=$("#video-embed").data("appid")&&(a.appid=$("#video-embed").data("appid"));void 0!=$("#video-embed").data("autostart")&&(a.autoStart=$("#video-embed").data("autostart"));void 0!=$("#video-embed").data("privatehash")&&(a.privateHash=$("#video-embed").data("privatehash"));void 0!=$("#video-embed").data("nostandalone")&&(a.noStandalone=!0);void 0!=$("#video-embed").data("embedded")&&(a.embedded=!0);void 0!=
  $("#video-embed").data("noshare")&&(a.noShare=!0);$("#video-embed").hasClass("hidden")?$("#video-embed").addClass("player-not-init"):$("#video-embed").VLplayer(a);0<$("#brightcove-player-embed").length?($(document).on({click:function(g){g.preventDefault();void 0!=$(this).data("progid")?(hideBrightcovePlayer(),$("a.legacy").length&&(g=$("a.legacy").attr("href"),g+="&vod",$("a.legacy").attr("href",g)),$("#video-embed").removeClass("hidden"),$("#video-embed").hasClass("player-not-init")&&($("#video-embed").removeClass("player-not-init"),
  $("#video-embed").VLplayer(a)),g=window.location.href,-1==g.indexOf("&vod")&&(g+="&vod"),history.replaceState({},document.title,g)):void 0!=$(this).data("live")&&($("a.legacy").length&&(g=$("a.legacy").attr("href"),g=g.replace("&vod",""),$("a.legacy").attr("href",g)),showBrightcovePlayer(),$("#video-embed").replaceWith("<div id='video-embed' class='hidden player-not-init'></div>"),g=window.location.href,g=g.replace("&vod",""),history.replaceState({},document.title,g));$(this).addClass("current").siblings("a.live-vod-toggle-link").removeClass("current")}},
  "a.live-vod-toggle-link"),0<=window.location.href.indexOf("&vod")&&$("a.live-vod-toggle-vod").click(),$(document).on({click:function(a){return!0}},"a.video-airing-toggle-link")):($(document).on({click:function(g){g.preventDefault();void 0!=$(this).data("progid")?(a.live=!1,a.progid=$(this).data("progid")):void 0!=$(this).data("live")&&(a.progid=!1,a.live=$(this).data("live"));$(this).addClass("current").siblings("a.live-vod-toggle-link").removeClass("current");$("#video-embed").replaceWith("<div id='video-embed'></div>");
  $("#video-embed").VLplayer(a)}},"a.live-vod-toggle-link"),$(document).on({click:function(g){g.preventDefault();$(this).addClass("current").siblings("a.video-airing-toggle-link").removeClass("current");void 0!=$(this).data("airingid")&&(0==$(this).data("airingid")?a.airingid=!1:a.airingid=$(this).data("airingid"),$("#video-embed").replaceWith("<div id='video-embed'></div>"),$("#video-embed").VLplayer(a))}},"a.video-airing-toggle-link"))}else if(0<$("#brightcove-player-embed").length)$(document).on({click:function(a){return!0}},
  "a.video-airing-toggle-link")};function cspanFlexslider(){$("body.home #carousel").flexslider({animation:"slide",controlNav:!1,animationLoop:!1,slideshow:!1,itemWidth:140,itemMargin:4,directionNav:!1,asNavFor:"#slider",smoothHeight:!1});$("body.home #slider").flexslider({directionNav:!1,animation:"slide",controlNav:!1,animationLoop:!0,slideshow:!0,slideshowSpeed:8E3,sync:"#carousel",start:function(a){$("body").removeClass("loading")}})};function dropDownConvert(){$dropDownConvertWindowViewportwidth=$(window).width();var a=$("nav.dropDownConvert li").map(function(a,c){return $("<option "+($(c).parent().hasClass("selected")?"selected='selected'":"")+" value='"+$(c).attr("href")+"'>"+$(c).text()+"</option>")}),g=$("<select></select>");a.each(function(a,c){g.append(c)})};function extendedPeopleToggle(){$("ul.extended-subjects-list").hide();$("#subjects a.more, body.schedule .program-data a.more").click(function(a){a.preventDefault();$(this).hasClass("expanded")?$(this).html($(this).html().replace("Fewer","More")):$(this).html($(this).html().replace("More","Fewer"));$(this).toggleClass("expanded");$(this).find("i").toggleClass("icon-chevron-down").toggleClass("icon-chevron-up");$(this).siblings("ul.extended-subjects-list").slideToggle("slow")})};function expandableInfoToggle(){0<$(".expandable-info-panel").length&&($(".expandable-info-panel .details").hide(),$(".expandable-info-panel .header").click(function(a){a.preventDefault();a.stopPropagation();$($(this).parent().siblings()).each(function(){$(this).hasClass("expanded")&&$(this).trigger("click")});$(this).parent("div").toggleClass("expanded");$(this).siblings(".details").slideToggle("slow")}),$(".expandable-info-panel .details").on("click",function(a){a.stopPropagation()}))}
  function closeExpandableInfoOnBlur(){$(document).click(function(){$(".expandable-info-panel.expanded > .details").slideUp("fast",function(){$(this).parent().removeClass("expanded")})})};function highlightFormInput(){$("header form fieldset").click(function(){$(this).addClass("focused")});$("body").click(function(a){$(a.target).closest("header form fieldset").length||$("header form fieldset").removeClass("focused")})};function jPlayerInit(){var a=$("#jquery_jplayer_1").attr("data-attr-stream-title"),g=$("#jquery_jplayer_1").attr("data-attr-stream-url"),f={title:a,mp3:g};$("#jquery_jplayer_1").jPlayer({ready:function(){$(this).jPlayer("setMedia",f)},pause:function(){$(this).jPlayer("pause")},swfPath:"/assets/swf",supplied:"mp3",preload:"none",wmode:"window",keyEnabled:!0})};function loadVideoTranscript(){0<$("#search-transcript").length&&($(document).on({submit:function(){var a=$(this).attr("action"),g=$(this).serialize(),f=$(this).next("div");$("#search-transcript").data("transcriptloading",g);"cc"==$("#search-transcript-type").val()?$(".transcript .CC-note").show():$(".transcript .CC-note").hide();$(f).html("<div class='ajax-transcript-loading'></div>");var c=$(this).serializeArray(),b=!1,e=parseInt($("input[name=personSkip]").length?$("input[name=personSkip]").val():
  0),d=parseInt($("input[name=ccSkip]").length?$("input[name=ccSkip]").val():0);$.each(c,function(a,c){"transcriptType"==c.name&&"people"==c.value&&(b=!0)});b&&!e?($("input[name=ccSkip]").val(1),$("input[name=personSkip]").val(1),$("select#filter-transcript option").each(function(a){if($.isNumeric($(this).val()))return!0;$("select#filter-transcript").easyDropDown("select",a);return!1}),$("input[name=personSkip]").val(0),$("input[name=ccSkip]").val(0),$.ajax({type:"GET",url:$("#progSpeakerUrl").val(),
  data:g,success:function(a){var b="<ul class='people-list'>";$.each(a.people,function(a,c){b+="<li id='"+c.id+"'>";b+="<a href='#' data-time='"+c.time+"' class='personImage' data-name='"+c.name+"'><img src='"+c.image+"'"+(c.color?" style='border-color: #"+c.color+"'":" style='border: none'")+"></a>";var d=secondsToTime(c.ulen);b+="<div class='time'>"+(0!=d.h?d.h+"h ":"")+(0!=d.m?d.m+"m ":"")+(0!=d.s?d.s+"s":"")+"</div>";b+="<div class='name'><a href='#' data-time='"+c.time+"'>"+c.name+"</a> - "+c.title+
  "</div>";b+="</li>";0==(a+1)%3&&0!=a&&(b+="</ul><ul class='people-list'>")});b+="</ul>";$(f).html(b);$("ul.people-list div.topics a.topic-link").click(function(a){a.preventDefault();a=$(this).data("person");var b=$(this).data("topic");a=$("li#"+a+" input."+b).val();$("input[name=appearance-filter]").val(a);$("select#search-transcript-type option").each(function(a){return"cc"==$(this).val()?($("select#search-transcript-type").easyDropDown("select",a),!1):!0})});$("ul.people-list div.name a, ul.people-list a.personImage").click(function(a){a.preventDefault();
  var b="",b=$(this).hasClass("personImage")?$(this).data("name"):$(this).html();$("input[name=personSkip]").val(1);$("input[name=ccSkip]").val(1);$("select#search-transcript-type option").each(function(a){return"cc"==$(this).val()?($("select#search-transcript-type").easyDropDown("select",a),!1):!0});$("input[name=ccSkip]").val(0);$("select#filter-transcript option").each(function(a){return $(this).html()==b?($("select#filter-transcript").easyDropDown("select",a),!1):!0});try{$("#video-embed").VLplayer.seek(parseInt($(this).data("time")));
  var c=window.location.href,c=c.replace(/&start=\d+/,""),c=c+("&start="+parseInt($(this).data("time")));history.replaceState({},document.title,c)}catch(d){}});$("input[name=ccSkip]").val(0)}})):d||$.ajax({type:"GET",url:a,data:g,success:function(a){$("#search-transcript").data("transcriptloading")==g&&($(f).html(a),$("#search-transcript").removeData("transcriptloading"),0<$(f).find(".graphic-timeline").length&&($(".transcript area.appR").tooltip({track:!0,content:function(){return $(this).attr("title")},
  show:{duration:100},hide:{duration:100},tooltipClass:"jquery-tooltip-normal jquery-tooltip-appR"}),$(".transcript area.appD").tooltip({track:!0,content:function(){return $(this).attr("title")},show:{duration:100},hide:{duration:100},tooltipClass:"jquery-tooltip-normal jquery-tooltip-appD"}),$(".transcript area.appI").tooltip({track:!0,content:function(){return $(this).attr("title")},show:{duration:100},hide:{duration:100},tooltipClass:"jquery-tooltip-normal jquery-tooltip-appI"}),$(".transcript area.app").tooltip({track:!0,
  content:function(){return $(this).attr("title")},show:{duration:100},hide:{duration:100},tooltipClass:"jquery-tooltip-normal"}),$(".transcript area.vote").tooltip({track:!0,content:function(){return $(this).attr("title")},show:{duration:100},hide:{duration:100},tooltipClass:"jquery-tooltip-normal"}),$(".transcript area.debate").tooltip({track:!0,content:function(){return $(this).attr("title")},show:{duration:100},hide:{duration:100},tooltipClass:"jquery-tooltip-normal"})));$("input[name=personSkip]").val(0)}});
  $("input[name=appearance-filter]").val("");return!1}},"#search-transcript"),$(document).on({change:function(){$("#search-transcript").submit()}},"#search-transcript select"),$(document).on({click:function(){$("#search-transcript").submit()}},"#search-transcript button"),$("#search-transcript").submit());0<$("#content .transcript").length&&0<$("#video-embed").length&&($("#content .transcript").on({mouseenter:function(a){$(this).addClass("transcript-mouse-over")},mouseleave:function(a){$(this).removeClass("transcript-mouse-over")}}),
  $("#content .transcript input, #content .transcript select").on({focus:function(a){$(this).closest(".transcript").addClass("transcript-input-focus")},blur:function(a){$(this).closest(".transcript").removeClass("transcript-input-focus")}}),$("#content .transcript").on({click:function(a){a.stopPropagation();try{var g=jwplayer("video-embed");$("input#start").length&&$("input#start").val(parseInt($(this).attr("id").substr(16),10));g.seek(parseInt($(this).attr("id").substr(16),10));$("#video-embed").VLplayer.seek(parseInt($(this).attr("id").substr(16),
  10));var f=window.location.href,f=f.replace(/&start=\d+/,""),f=f+("&start="+parseInt($(this).attr("id").substr(16),10));history.replaceState({},document.title,f)}catch(c){}return!1}},"table a.transcript-time-seek"),$("#content .transcript").on({click:function(a){a.stopPropagation();return!0}},"table a.transcript-bill-link"),$("#content .transcript").on({click:function(a){a.stopPropagation();console.log("click show full text");$(this).closest("td").toggleClass("show-hidden-full-transcript");return!1}},
  "table tr td a.hidden-full-transcript-link"),$("#content .transcript").on({click:function(a){console.log("click table row");if(0<$(this).find("a.transcript-time-seek").length){a.stopPropagation();try{var g=jwplayer("video-embed");$("input#start").length&&$("input#start").val(parseInt($(this).attr("id").substr(16),10));g.seek(parseInt($(this).attr("id").substr(16),10));$("#video-embed").VLplayer.seek(parseInt($(this).find("a.transcript-time-seek").attr("id").substr(16),10));var f=window.location.href,
  f=f.replace(/&start=\d+/,""),f=f+("&start="+parseInt($(this).find("a.transcript-time-seek").attr("id").substr(16),10));history.replaceState({},document.title,f)}catch(c){}}return!1}},"table tr"),$("#content .transcript").on({click:function(a){a.stopPropagation();if($(this).hasClass("transcript-time-seek"))try{var g=jwplayer("video-embed");$("input#start").length&&$("input#start").val(parseInt($(this).attr("id").substr(16),10));g.seek(parseInt($(this).attr("id").substr(16),10));$("#video-embed").VLplayer.seek(parseInt($(this).attr("id").substr(16),
  10));var f=window.location.href,f=f.replace(/&start=\d+/,""),f=f+("&start="+parseInt($(this).attr("id").substr(16),10));history.replaceState({},document.title,f)}catch(c){}return!1}},"map area"),setTimeout(function(){setInterval(function(){scrollVideoTranscript()},5E3)},3E3))}
  function scrollVideoTranscript(){var a=$("#content .transcript");if(!$(a).hasClass("transcript-mouse-over")&&!$(a).hasClass("transcript-input-focus"))if(0<$(a).find("table tr").length)try{var g=$("#video-embed").VLplayer.getTime();if($("#transcript-time-"+g.toString()).length){var f=$("#transcript-time-"+g.toString()).closest("tr"),c=$(f).position().top-$(a).find(".table-wrap table").position().top;$(a).find(".table-wrap").animate({scrollTop:c+"px"},300)}else for(var b=g;0<=b;b--)if($("#transcript-time-"+
  b.toString()).length){f=$("#transcript-time-"+b.toString()).closest("tr");c=$(f).position().top-$(a).find(".table-wrap table").position().top;$(a).find(".table-wrap").animate({scrollTop:c+"px"},300);break}}catch(k){}else if(0<$(a).find("map area").length)try{if(g=$("#video-embed").VLplayer.getTime(),$("#transcript-time-"+g.toString()).length){var e=$("#transcript-time-"+g.toString()),d=$(e).attr("coords").split(","),h=d[1];$(a).find(".table-wrap").animate({scrollTop:h+"px"},300)}else for(b=g;0<=b;b--)if($("#transcript-time-"+
  b.toString()).length){e=$("#transcript-time-"+b.toString());d=$(e).attr("coords").split(",");h=d[1];$(a).find(".table-wrap").animate({scrollTop:h+"px"},300);break}}catch(k){}}function secondsToTime(a){a=Math.round(a);var g=a%3600;return{h:Math.floor(a/3600),m:Math.floor(g/60),s:Math.ceil(g%60)}};var apIframeWidth,apIframeHeight,apIframeProvider,MVPDinfo={ATT:{ID:"ATT",displayName:"AT&T U-verse",logoURL:"https://static.c-span.org/assets/images/mvpd/att_uv_txt_4cp_pos_v3.jpg",logoOverride:!0,featured:5},Brighthouse:{ID:"Brighthouse",displayName:"Bright House Networks | Spectrum",logoURL:"https://static.c-span.org/assets/images/mvpd/BH_Spectrum_Logo_Lockup_RGB.jpg",logoOverride:!0,featured:10,linkURL:!1,nameOverride:!0},BUCKEYE:{ID:"BUCKEYE",displayName:"Buckeye CableSystem",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/53",
  featured:17},Charter_Direct:{ID:"Charter_Direct",displayName:"Charter",logoURL:"https://static.c-span.org/assets/images/mvpd/charter_spectrum_logo.png",logoOverride:!0,featured:7},Comcast_SSO:{ID:"Comcast_SSO",displayName:"Comcast XFINITY",logoURL:"https://static.c-span.org/assets/images/mvpd/XFINITY_RGB_122x60.png",logoFullsize:!0,featured:1,linkURL:"https://tv.xfinity.com",androidURL:"https://play.google.com/store/apps/details?id=com.xfinity.cloudtvr",iosURL:"https://itunes.apple.com/us/app/xfinity-tv/id731629156?ls=1&mt=8",
  logoPersist:!0},Cox:{ID:"Cox",displayName:"Cox",logoURL:"https://ww2.cox.com/wcm/en/common/image/cox/COX_logo_112x33.png",logoOverride:!0,featured:8,linkURL:!1},Cablevision:{ID:"Cablevision",displayName:"Optimum",logoURL:"https://idp.optimum.net/idp.optimum.net/images/Optimum_color1_3.png",logoOverride:!0,featured:9},DTV:{ID:"DTV",displayName:"DIRECTV",logoURL:"https://static.c-span.org/assets/images/mvpd/ATT_DTV_4CP_Sol_Pos.png",logoOverride:!0,featured:2},Dish:{ID:"Dish",displayName:"DISH",logoURL:"https://static.garnet.synacor.com/clientimages/69245/102004.png",
  logoOverride:!0,featured:3},TWC:{ID:"TWC",displayName:"TWC",logoURL:"https://static.c-span.org/assets/images/mvpd/time-warner-cable_spectrum_logo.png",logoOverride:!0,featured:4,linkURL:!1},auth_cableone_net:{ID:"auth_cableone_net",displayName:"Cable ONE",logoURL:"https://sso.cableone.net/Images/c1_logo-122.jpg",featured:13},Mediacom:{ID:"Mediacom",displayName:"Mediacom",logoURL:"https://static.garnet.synacor.com/clientimages/13312/91282.png",logoOverride:!0,featured:12},Suddenlink:{ID:"Suddenlink",
  displayName:"Suddenlink",logoURL:"https://static.c-span.org/assets/images/mvpd/suddenlink_v2.png",logoOverride:!0,featured:11},WOW:{ID:"WOW",displayName:"WOW!",logoURL:"https://static.c-span.org/assets/images/mvpd/wowlogo_v2.png",logoOverride:!0,featured:14},msauth_midco_net:{ID:"msauth_midco_net",displayName:"Midcontinent Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/Midco_logo.png",logoOverride:!0,featured:15},Verizon:{ID:"Verizon",displayName:"Verizon Fios",logoURL:"https://static.c-span.org/assets/images/mvpd/vzfios.png",
  logoOverride:!0,featured:6,width:305,height:550},"bci010-02":{ID:"bci010-02",displayName:"Vyve Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/vyve-broadband-logo_62x33.png",logoOverride:!0,featured:19},auth_atlanticbb_net:{ID:"auth_atlanticbb_net",displayName:"Atlantic Broadband",logoURL:"https://static.garnet.synacor.com/clientimages/69162/127310.png"},Bend:{ID:"Bend",displayName:"BendBroadband",logoURL:"https://static.garnet.synacor.com/clientimages/69221/91118.png"},all070:{ID:"all070",
  displayName:"ALLO Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_all070_proxylogo.png"},dix030:{ID:"dix030",displayName:"ATC Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dix030_proxylogo.png"},ara010:{ID:"ara010",displayName:"ATC Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ara010_proxylogo.png"},com140:{ID:"com140",displayName:"Access Montana",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_com140_proxylogo.png"},
  acecommunications:{ID:"acecommunications",displayName:"AcenTek",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_acecommunications_proxylogo.png"},acm010:{ID:"acm010",displayName:"Acme Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_acm010_proxylogo.png"},algona:{ID:"algona",displayName:"Algona Municipal Utilities",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_algona_proxylogo.png"},allwest:{ID:"allwest",displayName:"All West Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_allwest_proxylogo.png"},
  spl010:{ID:"spl010",displayName:"Alliance Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_spl010_proxylogo.png"},alpine:{ID:"alpine",displayName:"Alpine Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_alpine_proxylogo.png"},hun015:{ID:"hun015",displayName:"American Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_hun015_proxylogo.png"},"asu_auth-gateway_net":{ID:"asu_auth-gateway_net",displayName:"Arizona State University",
  logoURL:"https://image.vam.synacor.com.edgesuite.net/a5/85/a585d1c31be38e20f0bd9f5b87ef44d6992e678f"},arkwest:{ID:"arkwest",displayName:"Arkwest Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_arkwest_proxylogo.png"},auth_armstrongmywire_com:{ID:"auth_armstrongmywire_com",displayName:"Armstrong",logoURL:"https://static.garnet.synacor.com/clientimages/13300/153656.png"},arvig:{ID:"arvig",displayName:"Arvig",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_arvig_proxylogo.png"},
  nttcash010:{ID:"nttcash010",displayName:"Ashland Home Net",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttcash010_proxylogo.png"},astound:{ID:"astound",displayName:"Astound",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_astound_proxylogo.png"},bra020:{ID:"bra020",displayName:"BELD",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bra020_proxylogo.png"},btc010:{ID:"btc010",displayName:"BTC Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_btc010_proxylogo.png"},
  baldwin:{ID:"baldwin",displayName:"Baldwin Telecom, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_baldwin_proxylogo.png"},bay030:{ID:"bay030",displayName:"Bay Country Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bay030_proxylogo.png"},baycreek:{ID:"baycreek",displayName:"Bay Creek Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_baycreek_proxylogo.png"},tel095:{ID:"tel095",displayName:"Beaver Creek Cooperative Telephone",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tel095_proxylogo.png"},
  "vol040-01":{ID:"vol040-01",displayName:"Ben Lomand Connect / BLTV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_vol040_proxylogo.png"},www_websso_mybrctv_com:{ID:"www_websso_mybrctv_com",displayName:"Blue Ridge Communications",logoURL:"https://static.garnet.synacor.com/clientimages/11559/127311.png"},bra050:{ID:"bra050",displayName:"Brandenburg Telephone Co.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bra050_proxylogo.png"},bte010:{ID:"bte010",displayName:"Bristol Tennessee Essential Services",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bte010_proxylogo.png"},annearundel:{ID:"annearundel",displayName:"Broadstripe",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_annearundel_proxylogo.png"},"burlington_auth-gateway_net":{ID:"burlington_auth-gateway_net",displayName:"Burlington Telecom",logoURL:"https://static.c-span.org/assets/images/mvpd/synacor1_e1_7a_3da6baf74ca4453cf0804faeb5d54276572ea806.png"},but010:{ID:"but010",displayName:"Butler-Bremer Communications",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_but010_proxylogo.png"},"tel160-csp":{ID:"tel160-csp",displayName:"C Spire",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tel160-csp_proxylogo.png",norelease:!0},cas:{ID:"cas",displayName:"CAS Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cas_proxylogo.png"},casscomm:{ID:"casscomm",displayName:"CASSCOMM",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_casscomm_proxylogo.png"},cccomm:{ID:"cccomm",
  displayName:"CC Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cccomm_proxylogo.png"},nttccde010:{ID:"nttccde010",displayName:"CDE Lightband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttccde010_proxylogo.png"},cml010:{ID:"cml010",displayName:"CML Telephone Cooperative Association",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cml010_proxylogo.png"},cns:{ID:"cns",displayName:"CNS",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cns_proxylogo.png"},
  ctcommunications:{ID:"ctcommunications",displayName:"CT Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ctcommunications_proxylogo.png"},ctc040:{ID:"ctc040",displayName:"CTC - Brainerd MN",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ctc040_proxylogo.png"},csicable:{ID:"csicable",displayName:"Cable Services Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_csicable_proxylogo.png"},phe030:{ID:"phe030",displayName:"Cable TV of East Alabama",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_phe030_proxylogo.png"},
  cab140:{ID:"cab140",displayName:"Cable TV of Stanton",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cab140_proxylogo.png"},cableamerica:{ID:"cableamerica",displayName:"CableAmerica",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cableamerica_proxylogo.png"},"weh010-camtel":{ID:"weh010-camtel",displayName:"Cam-Tel Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_weh010-camtel_proxylogo.png"},car030:{ID:"car030",displayName:"Cameron Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_car030_proxylogo.png"},
  canbytel:{ID:"canbytel",displayName:"Canby Telcom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_canbytel_proxylogo.png"},crt020:{ID:"crt020",displayName:"CapRock Tv",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_crt020_proxylogo.png"},car050:{ID:"car050",displayName:"Carnegie Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_car050_proxylogo.png"},cfunet:{ID:"cfunet",displayName:"Cedar Falls Utilities",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cfunet_proxylogo.png"},
  "dem010-01":{ID:"dem010-01",displayName:"Celect-Bloomer Telephone Area",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dem010-01_proxylogo.png"},"dem010-02":{ID:"dem010-02",displayName:"Celect-Bruce Telephone Area",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dem010-02_proxylogo.png"},"dem010-03":{ID:"dem010-03",displayName:"Celect-Citizens Connected Area",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dem010-03_proxylogo.png"},"dem010-04":{ID:"dem010-04",displayName:"Celect-Elmwood/Spring Valley Area",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dem010-04_proxylogo.png"},"dem010-05":{ID:"dem010-05",displayName:"Celect-West WI Telephone Area",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dem010-05_proxylogo.png"},cen100:{ID:"cen100",displayName:"CentraCom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cen100_proxylogo.png"},auth_centurylink_net:{ID:"auth_centurylink_net",displayName:"CenturyLink Prism",logoURL:"https://static.garnet.synacor.com/clientimages/69187/153658.png"},
  dur010:{ID:"dur010",displayName:"Chippewa Valley Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dur010_proxylogo.png"},cimtel:{ID:"cimtel",displayName:"Cim-Tel Cable, LLC.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cimtel_proxylogo.png"},cit180:{ID:"cit180",displayName:"Citizens Cablevision - Floyd, VA",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cit180_proxylogo.png"},cit210:{ID:"cit210",displayName:"Citizens Cablevision, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cit210_proxylogo.png"},
  cit040:{ID:"cit040",displayName:"Citizens Telecom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cit040_proxylogo.png"},war040:{ID:"war040",displayName:"Citizens Telephone Corporation",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_war040_proxylogo.png"},wadsworth:{ID:"wadsworth",displayName:"CityLink",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wadsworth_proxylogo.png",norelease:!0},cla010:{ID:"cla010",displayName:"Clarence Telephone and Cedar Communications",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cla010_proxylogo.png"},"clickcabletv_auth-gateway_net":{ID:"clickcabletv_auth-gateway_net",displayName:"Click! Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/synacor1_f2_07_5b4626059da413685d34edd738844a692355db22.png"},cli030:{ID:"cli030",displayName:"Clinton Cable Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cli030_proxylogo.png"},coa030:{ID:"coa030",displayName:"Coaxial Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_coa030_proxylogo.png"},
  col090:{ID:"col090",displayName:"Colo Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_col090_proxylogo.png"},col070:{ID:"col070",displayName:"Columbia Power and Water Systems",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_col070_proxylogo.png"},col080:{ID:"col080",displayName:"Columbus Telephone",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_col080_proxylogo.png"},com020:{ID:"com020",displayName:"Community Communications Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_com020_proxylogo.png"},
  cat020:{ID:"cat020",displayName:"Comporium",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cat020_proxylogo.png"},consolidatedcable:{ID:"consolidatedcable",displayName:"Consolidated",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_consolidatedcable_proxylogo.png"},"consolidated_auth-gateway_net":{ID:"consolidated_auth-gateway_net",displayName:"Consolidated Communications",logoURL:"https://static.garnet.synacor.com/clientimages/69220/153660.png"},conwaycorp:{ID:"conwaycorp",
  displayName:"Conway Corporation",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_conwaycorp_proxylogo.png"},crestview:{ID:"crestview",displayName:"Crestview Cable Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_crestview_proxylogo.png"},cross:{ID:"cross",displayName:"Cross TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cross_proxylogo.png",norelease:!0},cro030:{ID:"cro030",displayName:"Crosslake Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cro030_proxylogo.png",
  norelease:!0},cun010:{ID:"cun010",displayName:"Cunningham Telephone and Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cun010_proxylogo.png"},dak030:{ID:"dak030",displayName:"Dakota Central Telecommunications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dak030_proxylogo.png"},"tel160-del":{ID:"tel160-del",displayName:"Delta Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tel160-del_proxylogo.png"},"ind060-dc":{ID:"ind060-dc",displayName:"Direct Communications",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ind060-dc_proxylogo.png"},eatel:{ID:"eatel",displayName:"EATEL Video, LLC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_eatel_proxylogo.png"},"epb_auth-gateway_net":{ID:"epb_auth-gateway_net",displayName:"EPB Fiber Optics",logoURL:"https://static.garnet.synacor.com/clientimages/69270/127312.png"},eagle:{ID:"eagle",displayName:"Eagle Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_eagle_proxylogo.png"},
  "weh010-east":{ID:"weh010-east",displayName:"East Arkansas Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_weh010-east_proxylogo.png"},emerytelcom:{ID:"emerytelcom",displayName:"Emery Telcom Video LLC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_emerytelcom_proxylogo.png"},endeavor:{ID:"endeavor",displayName:"Endeavor Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_endeavor_proxylogo.png"},sun045:{ID:"sun045",displayName:"Enhanced Telecommunications Corporation",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sun045_proxylogo.png"},"hickorytech_auth-gateway_net":{ID:"hickorytech_auth-gateway_net",displayName:"Enventis formerly HickoryTech",logoURL:"https://static.c-span.org/assets/images/mvpd/synacor1_40_2a_6c930547f506de221557407c818e1dea81bee847.png"},fal010:{ID:"fal010",displayName:"Falcon Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_fal010_proxylogo.png"},"fbc-tele":{ID:"fbc-tele",displayName:"FandB Communications",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_fbc-tele_proxylogo.png"},fid010:{ID:"fid010",displayName:"Fidelity Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_fid010_proxylogo.png"},fli020:{ID:"fli020",displayName:"Flint River Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_fli020_proxylogo.png"},fbcomm:{ID:"fbcomm",displayName:"Frankfort Plant Board",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_fbcomm_proxylogo.png"},
  "tel160-fra":{ID:"tel160-fra",displayName:"Franklin Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tel160-fra_proxylogo.png"},fullchannel:{ID:"fullchannel",displayName:"Full Channel, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_fullchannel_proxylogo.png"},gbt010:{ID:"gbt010",displayName:"GBT Communications, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_gbt010_proxylogo.png"},"gci_auth-gateway_net":{ID:"gci_auth-gateway_net",displayName:"GCI",
  logoURL:"https://static.garnet.synacor.com/clientimages/69158/153676.png"},gra060:{ID:"gra060",displayName:"GLW Broadband Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_gra060_proxylogo.png",norelease:!0},"gta_auth-gateway_net":{ID:"gta_auth-gateway_net",displayName:"GTA",logoURL:"https://static.c-span.org/assets/images/mvpd/synacor1_24_bc_cac773555f440531883ab3cf31fc95112c0e5361.png"},"gvtc_auth-gateway_net":{ID:"gvtc_auth-gateway_net",displayName:"GVTC",logoURL:"https://static.c-span.org/assets/images/mvpd/synacor1_56_c6_48ed5ed93613cc98c3d08eec42cebeb5d74b134e.png"},
  clr010:{ID:"clr010",displayName:"Giant Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_clr010_proxylogo.png"},gla010:{ID:"gla010",displayName:"Glasgow EPB",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_gla010_proxylogo.png"},gle010:{ID:"gle010",displayName:"Glenwood Telecommunications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_gle010_proxylogo.png"},goldenwest:{ID:"goldenwest",displayName:"Golden West Cablevision",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_goldenwest_proxylogo.png"},
  "googlefiber_auth-gateway_net":{ID:"googlefiber_auth-gateway_net",displayName:"Google Fiber",logoURL:"https://static.garnet.synacor.com/clientimages/69289/153675.png",norelease:!0},GoogleFiber:{ID:"GoogleFiber",displayName:"Google Fiber",logoURL:"https://static.garnet.synacor.com/clientimages/69289/153675.png"},gpcom:{ID:"gpcom",displayName:"Great Plains Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_gpcom_proxylogo.png"},HBC:{ID:"HBC",displayName:"HBC",logoURL:"https://ava-dev.s3.amazonaws.com/uploads/logos/5/hbc-logo-mso-list.png",
  norelease:!0},htccomm:{ID:"htccomm",displayName:"HTC Communications, Inc. - IA",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_htccomm_proxylogo.png"},"hargray_auth-gateway_net":{ID:"hargray_auth-gateway_net",displayName:"Hargray",logoURL:"https://websso.synacor.net.ent-web01.dev.synacor.com/saml/module.php/authSynacor/image.php?cs=bbych&cid=12620"},har005:{ID:"har005",displayName:"Harlan Municipal Utilities",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_har005_proxylogo.png"},
  har020:{ID:"har020",displayName:"Hart Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_har020_proxylogo.png"},auth_hawaiiantel_net:{ID:"auth_hawaiiantel_net",displayName:"Hawaiian Telcom",logoURL:"https://image.vam.synacor.com.edgesuite.net/ad/69/99a72df492a37bb01e7267068c804161f6993c2c.jpeg"},hea040:{ID:"hea040",displayName:"Heart of Iowa Communications Cooperative",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_hea040_proxylogo.png"},htc020:{ID:"htc020",displayName:"Hickory Telephone Company",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_htc020_proxylogo.png"},nttchig010:{ID:"nttchig010",displayName:"Highland Communication Services",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttchig010_proxylogo.png"},"hometelecom_auth-gateway_net":{ID:"hometelecom_auth-gateway_net",displayName:"Home Telecom",logoURL:"https://websso.synacor.net.ent-web01.dev.synacor.com/saml/module.php/authSynacor/image.php?cs=bbych&cid=46119"},"hometowncable_auth-gateway_net":{ID:"hometowncable_auth-gateway_net",
  displayName:"Home Town Cable",logoURL:"https://websso.synacor.net.ent-web01.dev.synacor.com/saml/module.php/authSynacor/image.php?cs=bbych&cid=21052"},hometel:{ID:"hometel",displayName:"HomeTel Entertainment, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_hometel_proxylogo.png"},hoodcanal:{ID:"hoodcanal",displayName:"Hood Canal Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_hoodcanal_proxylogo.png"},"weh010-hope":{ID:"weh010-hope",displayName:"Hope - Prescott Cable TV",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_weh010-hope_proxylogo.png"},horizoncable:{ID:"horizoncable",displayName:"Horizon Cable TV, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_horizon_proxylogo.png"},"hotwirecommunications_auth-gateway_net":{ID:"hotwirecommunications_auth-gateway_net",displayName:"Hotwire Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/Hotwire_logo.png"},imon:{ID:"imon",displayName:"ImOn Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_imon_proxylogo.png"},
  rrc010:{ID:"rrc010",displayName:"Inland Networks",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_rrc010_proxylogo.png"},stc020:{ID:"stc020",displayName:"Innovative Cable TV St Croix",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_stc020_proxylogo.png"},car100:{ID:"car100",displayName:"Innovative Cable TV St Thomas-St John",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_car100_proxylogo.png"},icc010:{ID:"icc010",displayName:"Inside Connect Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_icc010_proxylogo.png"},
  int050:{ID:"int050",displayName:"Interstate Telecommunications Coop",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_int050_proxylogo.png"},kmt010:{ID:"kmt010",displayName:"KMTelecom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_kmt010_proxylogo.png"},"knology_auth-gateway_net":{ID:"knology_auth-gateway_net",displayName:"KNOLOGY",logoURL:"https://websso.synacor.net.ent-web01.dev.synacor.com/saml/module.php/authSynacor/image.php?cs=bigch&cid=14960"},kpu010:{ID:"kpu010",displayName:"KPU Telecommunications",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_kpu010_proxylogo.png"},kal010:{ID:"kal010",displayName:"Kalida Telephone Company, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_kal010_proxylogo.png"},kal030:{ID:"kal030",displayName:"Kalona Cooperative Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_kal030_proxylogo.png"},kuh010:{ID:"kuh010",displayName:"Kuhn Communications, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_kuh010_proxylogo.png"},
  lau020:{ID:"lau020",displayName:"Laurel Highland Total Communications, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_lau020_proxylogo.png"},bra010:{ID:"bra010",displayName:"Limestone Cable/Bracken Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bra010_proxylogo.png"},lit020:{ID:"lit020",displayName:"Litestream",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_lit020_proxylogo.png"},loc010:{ID:"loc010",displayName:"LocalTel Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_loc010_proxylogo.png",
  norelease:!0},"longlines_auth-gateway_net":{ID:"longlines_auth-gateway_net",displayName:"Long Lines",logoURL:"https://static.garnet.synacor.com/clientimages/69282/153654.png"},"weh010-longview":{ID:"weh010-longview",displayName:"Longview - Kilgore Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_weh010-longview_proxylogo.png"},lns010:{ID:"lns010",displayName:"Lost Nation-Elwood Telephone Co.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_lns010_proxylogo.png"},lumos:{ID:"lumos",
  displayName:"Lumos Networks",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_lumos_proxylogo.png"},"lus-fiber":{ID:"lus-fiber",displayName:"LUS Fiber",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/logos/10/lus-fiber.png"},mctv:{ID:"mctv",displayName:"MCTV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mctv_proxylogo.png"},mhtc:{ID:"mhtc",displayName:"MHTC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mhtc_proxylogo.png"},mtacomm:{ID:"mtacomm",displayName:"MTA Communications, LLC",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mtacomm_proxylogo.png"},med040:{ID:"med040",displayName:"MTC Technologies",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_med040_proxylogo.png"},man060:{ID:"man060",displayName:"MTCC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_man060_proxylogo.png"},mtc030:{ID:"mtc030",displayName:"MTCO Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mtc030_proxylogo.png"},musfiber:{ID:"musfiber",displayName:"MUS FiberNET",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_musfiber_proxylogo.png"},madison:{ID:"madison",displayName:"Madison Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_madison_proxylogo.png"},mad030:{ID:"mad030",displayName:"Madison County Cable Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mad030_proxylogo.png"},merrimac:{ID:"merrimac",displayName:"Merrimac Communications Ltd.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_merrimac_proxylogo.png"},
  auth_metrocast_net:{ID:"auth_metrocast_net",displayName:"MetroCast",logoURL:"https://static.garnet.synacor.com/clientimages/69266/153634.png"},metronet:{ID:"metronet",displayName:"Metronet",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_metronet_proxylogo.png"},midhudson:{ID:"midhudson",displayName:"Mid-Hudson Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_midhudson_proxylogo.png"},midrivers:{ID:"midrivers",displayName:"Mid-Rivers Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_midrivers_proxylogo.png"},
  mid045:{ID:"mid045",displayName:"Midstate Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mid045_proxylogo.png"},mil080:{ID:"mil080",displayName:"Milford Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mil080_proxylogo.png"},"morrisbroadband_auth-gateway_net":{ID:"morrisbroadband_auth-gateway_net",displayName:"Morris Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/synacor1_9c_95_9ea160a1a95a04d39eed96bcae9932e0988e78ed.png"},mpw:{ID:"mpw",
  displayName:"Muscatine Power and Water",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mpw_proxylogo.png"},nor240:{ID:"nor240",displayName:"NICP",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nor240_proxylogo.png"},nktelco:{ID:"nktelco",displayName:"NKTelco",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nktelco_proxylogo.png"},new045:{ID:"new045",displayName:"NU-Telecom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_new045_proxylogo.png"},nctc:{ID:"nctc",
  displayName:"Nebraska Central Telecom, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nctc_proxylogo.png"},"dur010-nel":{ID:"dur010-nel",displayName:"Nelson Telephone Cooperative",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dur010-nel_proxylogo.png"},nem010:{ID:"nem010",displayName:"Nemont",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nem010_proxylogo.png"},"nwcable_auth-gateway_net":{ID:"nwcable_auth-gateway_net",displayName:"NewWave Communications",
  logoURL:"https://static.c-span.org/assets/images/mvpd/synacor1_a9_48_a41bffc9e245d5b07bc4af2c1b7bd8b7099d0c01.png"},"nextech_auth-gateway_net":{ID:"nextech_auth-gateway_net",displayName:"Nex-Tech",logoURL:"https://static.c-span.org/assets/images/mvpd/synacor1_4d_c9_67db01fa32b74f708a95811b0872eb7a6130f52b.png"},cic010:{ID:"cic010",displayName:"NineStar Connect",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cic010_proxylogo.png"},nortex:{ID:"nortex",displayName:"Nortex Communications",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nortex_proxylogo.png"},nor140:{ID:"nor140",displayName:"North Central Telephone Cooperative",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cit220_proxylogo.png"},nor030:{ID:"nor030",displayName:"Northland Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nor030_proxylogo.png"},nor075:{ID:"nor075",displayName:"Northwest Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nor075_proxylogo.png"},
  nor125:{ID:"nor125",displayName:"Norwood Light Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nor125_proxylogo.png"},net010:{ID:"net010",displayName:"Nsight Telservices",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_net010_proxylogo.png"},nulink:{ID:"nulink",displayName:"NuLink",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nulink_proxylogo.png"},ote010:{ID:"ote010",displayName:"OTEC Communication Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ote010_proxylogo.png"},
  onesource:{ID:"onesource",displayName:"OneSource Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_onesource_proxylogo.png"},"openband_auth-gateway_net":{ID:"openband_auth-gateway_net",displayName:"OpenBand",logoURL:"https://websso.synacor.net.ent-web01.dev.synacor.com/saml/module.php/authSynacor/image.php?cs=bigch&cid=17662"},daltonutilities:{ID:"daltonutilities",displayName:"OptiLink",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_daltonutilities_proxylogo.png"},
  pac12enterprises:{ID:"pac12enterprises",displayName:"PAC12 Enterprises",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pac12_proxylogo.png",norelease:!0},psc010:{ID:"psc010",displayName:"PSC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_psc010_proxylogo.png"},pan020:{ID:"pan020",displayName:"PTCI",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pan020_proxylogo.png"},otter:{ID:"otter",displayName:"Park Region Telephone and Otter Tail Telcom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_otter_proxylogo.png"},
  paulbunyan:{ID:"paulbunyan",displayName:"Paul Bunyan Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_paulbunyan_proxylogo.png"},pem020:{ID:"pem020",displayName:"Pembroke Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pem020_proxylogo.png"},mck010:{ID:"mck010",displayName:"Peoples Rural Telephone Cooperative",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mck010_proxylogo.png"},phonoscope:{ID:"phonoscope",displayName:"Phonoscope Cable",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_phonoscope_proxylogo.png"},"weh010-pine":{ID:"weh010-pine",displayName:"Pine Bluff Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_weh010-pine_proxylogo.png"},cam010:{ID:"cam010",displayName:"Pinpoint Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cam010_proxylogo.png"},pioncomm:{ID:"pioncomm",displayName:"Pioneer Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pioncomm_proxylogo.png"},
  pioneer:{ID:"pioneer",displayName:"Pioneer DTV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pioneer_proxylogo.png"},pottawatomie:{ID:"pottawatomie",displayName:"Pottawatomie Telephone Co.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pottawatomie_proxylogo.png"},premiercomm:{ID:"premiercomm",displayName:"Premier Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_premiercomm_proxylogo.png"},rma:{ID:"rma",displayName:"RMA Broadband and Cable TV",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_rma_proxylogo.png"},rtc:{ID:"rtc",displayName:"RTC Communication Corp",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_rtc_proxylogo.png"},rai030:{ID:"rai030",displayName:"Rainier Connect",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_rai030_proxylogo.png"},ree010:{ID:"ree010",displayName:"Reedsburg Utility Commission",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ree010_proxylogo.png"},"myrtu_auth-gateway_net":{ID:"myrtu_auth-gateway_net",
  displayName:"Reinbeck Telecommunications Utility",logoURL:"https://static.garnet.synacor.com/clientimages/69287/153655.png",norelease:!0},res020:{ID:"res020",displayName:"Reserve Telecommunications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_res020_proxylogo.png"},"weh010-resort":{ID:"weh010-resort",displayName:"Resort TV Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_weh010-resort_proxylogo.png"},riv030:{ID:"riv030",displayName:"River Valley Telecommunications Coop",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_riv030_proxylogo.png"},rockportcable:{ID:"rockportcable",displayName:"Rock Port Cablevision",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_rockportcable_proxylogo.png"},sav010:{ID:"sav010",displayName:"SCI Broadband-Savage Communications Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sav010_proxylogo.png"},selco:{ID:"selco",displayName:"SELCO",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_selco_proxylogo.png"},
  srt010:{ID:"srt010",displayName:"SRT",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_srt010_proxylogo.png"},"serviceelectric_auth-gateway_net":{ID:"serviceelectric_auth-gateway_net",displayName:"Service Electric Cablevision",logoURL:"https://static.garnet.synacor.com/clientimages/69274/153661.png"},"service-electric":{ID:"service-electric",displayName:"Service Electric Cable TV and Communications",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/signon_logos/11/service-electric-tv-logo.png"},
  "service-electric-bb":{ID:"service-electric-bb",displayName:"Service Electric Broadband Cable",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/signon_logos/27/se_logo_250x120.png"},she010:{ID:"she010",displayName:"Shentel",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_she010_proxylogo.png"},she030:{ID:"she030",displayName:"Sherwood Mutual Telephone Association, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_she030_proxylogo.png"},"ind060-ssc":{ID:"ind060-ssc",
  displayName:"Silver Star Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ind060-ssc_proxylogo.png"},sjoberg:{ID:"sjoberg",displayName:"Sjoberg's Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sjoberg_proxylogo.png"},sky050:{ID:"sky050",displayName:"SkyBest TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sky050_proxylogo.png"},sou075:{ID:"sou075",displayName:"South Central Rural Telephone Cooperative",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sou075_proxylogo.png"},
  sou035:{ID:"sou035",displayName:"South Slope Cooperative Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sou035_proxylogo.png"},spe010:{ID:"spe010",displayName:"Spencer Municipal Utilities",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_spe010_proxylogo.png"},sum010:{ID:"sum010",displayName:"Sumner Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sum010_proxylogo.png"},auth_surewest_net:{ID:"auth_surewest_net",displayName:"SureWest (Consolidated Communications)",
  logoURL:"https://static.garnet.synacor.com/clientimages/69220/153660.png"},pie010:{ID:"pie010",displayName:"Surry TV/PCSI TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pie010_proxylogo.png"},sweetwater:{ID:"sweetwater",displayName:"Sweetwater Cable Television Co",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sweetwater_proxylogo.png"},tct:{ID:"tct",displayName:"TCT West, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tct_proxylogo.png"},"tds_auth-gateway_net":{ID:"tds_auth-gateway_net",
  displayName:"TDS",logoURL:"https://static.c-span.org/assets/images/mvpd/synacor1_5d_9b_2887d4ad5562905ab13c61033042b627ae1b67b7.png"},tsc:{ID:"tsc",displayName:"TSC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tsc_proxylogo.png"},"weh010-talequah":{ID:"weh010-talequah",displayName:"Tahlequah Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_weh010-talequah_proxylogo.png"},"telus_auth-gateway_net":{ID:"telus_auth-gateway_net",displayName:"Telus",logoURL:"https://static.c-span.org/assets/images/mvpd/synacor1_45_78_326d900bd172bf8f61e5b1a60837294082ea4382.png"},
  com050:{ID:"com050",displayName:"The Community Agency",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_com050_proxylogo.png"},tcc:{ID:"tcc",displayName:"Tri County Communications Cooperative",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tcc_proxylogo.png",norelease:!0},tro010:{ID:"tro010",displayName:"Troy Cablevision, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tro010_proxylogo.png"},auth_truvista_net:{ID:"auth_truvista_net",displayName:"TruVista",logoURL:"https://static.c-span.org/assets/images/mvpd/synacor1_33_59_60006086e2e50c3ae145ad403f4fb53c7d6b10f5.png"},
  cit220:{ID:"cit220",displayName:"Tullahoma Utilities Board",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cit220_proxylogo.png"},tvtinc:{ID:"tvtinc",displayName:"Twin Valley",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tvtinc_proxylogo.png"},uss020:{ID:"uss020",displayName:"US Sonet",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_uss020_proxylogo.png"},cab060:{ID:"cab060",displayName:"USA Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cab060_proxylogo.png"},
  she005:{ID:"she005",displayName:"USA Communications/Shellsburg, IA",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_she005_proxylogo.png"},uis010:{ID:"uis010",displayName:"Union Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_uis010_proxylogo.png"},val025:{ID:"val025",displayName:"Valley Telecommunications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_val025_proxylogo.png"},sul015:{ID:"sul015",displayName:"Venture Communications Cooperative, Inc.",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sul015_proxylogo.png"},ver025:{ID:"ver025",displayName:"Vernon Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ver025_proxylogo.png"},"weh010-vicksburg":{ID:"weh010-vicksburg",displayName:"Vicksburg Video",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_weh010-vicksburg_proxylogo.png"},vis070:{ID:"vis070",displayName:"Vision Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_vis070_proxylogo.png"},
  "vol040-02":{ID:"vol040-02",displayName:"VolFirst / BLTV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_vol040_proxylogo.png"},volcanotel:{ID:"volcanotel",displayName:"Volcano Vision, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_volcanotel_proxylogo.png"},bci010:{ID:"bci010",displayName:"Vyve Broadband former Allegiance",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bci010_proxylogo.png"},wtc010:{ID:"wtc010",displayName:"WTC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wtc010_proxylogo.png"},
  wil040:{ID:"wil040",displayName:"WTC Communications, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wil040_proxylogo.png"},waitsfield:{ID:"waitsfield",displayName:"Waitsfield Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_waitsfield_proxylogo.png"},wal010:{ID:"wal010",displayName:"Walnut Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wal010_proxylogo.png"},wavebroadband:{ID:"wavebroadband",displayName:"Wave Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wavebroadband_proxylogo.png"},
  carolinata:{ID:"carolinata",displayName:"West Carolina Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_carolinata_proxylogo.png"},wct010:{ID:"wct010",displayName:"West Central Telephone Association",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wct010_proxylogo.png"},wes110:{ID:"wes110",displayName:"West River Cooperative Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wes110_proxylogo.png"},westianet:{ID:"westianet",displayName:"Western Iowa Networks",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_westianet_proxylogo.png"},nttcwhi010:{ID:"nttcwhi010",displayName:"Whidbey Telecom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttcwhi010_proxylogo.png"},"weh010-white":{ID:"weh010-white",displayName:"White County Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_weh010-white_proxylogo.png"},wil015:{ID:"wil015",displayName:"Wilson Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wil015_proxylogo.png"},
  win090:{ID:"win090",displayName:"Windstream",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_win090_proxylogo.png"},wcta:{ID:"wcta",displayName:"Winnebago Cooperative Telecom Association",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wcta_proxylogo.png"},cou060:{ID:"cou060",displayName:"Zito Media",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cou060_proxylogo.png"},mid030:{ID:"mid030",displayName:"enTouch",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mid030_proxylogo.png"},
  ATMC:{ID:"ATMC",displayName:"ATMC",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/48"},ACC:{ID:"ACC",displayName:"Advanced Cable Communications",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/32"},ANTIETAM:{ID:"ANTIETAM",displayName:"Antietam Cable Television",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/47"},BVU:{ID:"BVU",displayName:"BVU Optinet",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/45"},
  CBT:{ID:"CBT",displayName:"Cincinnati Bell Fioptics",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/49"},CLEARCREEK:{ID:"CLEARCREEK",displayName:"Clear Creek Communications",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/50"},GUAM:{ID:"GUAM",displayName:"Docomo Pacific",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/60"},FRONTIER:{ID:"FRONTIER",displayName:"Frontier Communications",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/101"},
  GREENLIGHT:{ID:"GREENLIGHT",displayName:"Greenlight Cable",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/12"},wal005:{ID:"wal005",displayName:"Huxley Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wal005_proxylogo.png"},JEA:{ID:"JEA",displayName:"Jackson Energy Authority",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/51"},MICONNECTION:{ID:"MICONNECTION",displayName:"MI-Connection",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/52"},
  NORTHSTATE:{ID:"NORTHSTATE",displayName:"North State",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/120"},ORBITEL:{ID:"ORBITEL",displayName:"Orbitel",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/110"},"cspire_auth-gateway_net":{ID:"cspire_auth-gateway_net",displayName:"C Spire",logoURL:"https://image.vam.synacor.com.edgesuite.net/60/5b/605bc055d59a84ef671e710c94d98946801d9d21"},cha060:{ID:"cha060",displayName:"Chatmoss Cablevision",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cha060_proxylogo.png"},
  "dishdigital_auth-gateway_net":{ID:"dishdigital_auth-gateway_net",displayName:"Dish OTTO",logoURL:"https://identity1.dishnetwork.com/images/dish/dish_logo_small.png"},"enventis_auth-gateway_net":{ID:"enventis_auth-gateway_net",displayName:"Enventis",logoURL:"https://websso.synacor.net.ent-web01.dev.synacor.com/saml/module.php/authSynacor/image.php?cs=bbych&cid=17767",norelease:!0},woo010:{ID:"woo010",displayName:"Solarus",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_woo010_proxylogo.png"},
  val030:{ID:"val030",displayName:"Valparaiso Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_val030_proxylogo.png"},"easton-utilities":{ID:"easton-utilities",displayName:"Easton Utilities",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/logos/6/easton-cable.png"},gardenvalley:{ID:"gardenvalley",displayName:"Garden Valley",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/logos/45/35_op45_mso_list_logo.jpg"},"uwashington_auth-gateway_net":{ID:"uwashington_auth-gateway_net",
  displayName:"University of Washington",logoURL:"https://image.vam.synacor.com.edgesuite.net/5b/bd/5bbd2f4b4eda0e27b225b530ce6ed35f83aef910"},nttcftc010:{ID:"nttcftc010",displayName:"FTC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttcftc010_proxylogo.png"},"harrison-telco":{ID:"harrison-telco",displayName:"HTC Communications - IL",logoURL:"https://ava-dev.s3.amazonaws.com/uploads/logos/14/htc.png"},mul050:{ID:"mul050",displayName:"Mulberry Telecommunications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mul050_proxylogo.png"},
  cit230:{ID:"cit230",displayName:"Opelika Power Services",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cit230_proxylogo.png"},cccsmc010:{ID:"cccsmc010",displayName:"St. Maarten Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cccsmc010_proxylogo.png"},bea020:{ID:"bea020",displayName:"Beaver Valley Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bea020_proxylogo.png"},cci010:{ID:"cci010",displayName:"Duo County Telecom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cci010_proxylogo.png"},
  jea010:{ID:"jea010",displayName:"EPlus Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_jea010_proxylogo.png"},com065:{ID:"com065",displayName:"ETC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_com065_proxylogo.png"},ete010:{ID:"ete010",displayName:"Etex Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ete010_proxylogo.png"},fay010:{ID:"fay010",displayName:"Fayetteville Public Utilities",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_fay010_proxylogo.png"},
  ROGERS:{ID:"ROGERS",displayName:"Rogers",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/145"},sou065:{ID:"sou065",displayName:"South Holt Cablevision, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sou065_proxylogo.png"},cab180:{ID:"cab180",displayName:"TVision",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cab180_proxylogo.png"},"ulosangeles_auth-gateway_net":{ID:"ulosangeles_auth-gateway_net",displayName:"University of California, Los Angeles",
  logoURL:"https://image.vam.synacor.com.edgesuite.net/1f/20/1f20fc87c4091f3261056a84a7bd528191566603"},wab020:{ID:"wab020",displayName:"Wabash Mutual Telephone",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wab020_proxylogo.png"},wtve:{ID:"wtve",displayName:"watchTVeverywhere",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wtve_proxylogo.png"},thr030:{ID:"thr030",displayName:"3 Rivers Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_thr030_proxylogo.png"},
  "com130-02":{ID:"com130-02",displayName:"American Community Networks",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_com130-02_proxylogo.png"},"com130-01":{ID:"com130-01",displayName:"American Warrior Networks",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_com130-01_proxylogo.png"},bal040:{ID:"bal040",displayName:"Ballard TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bal040_proxylogo.png"},cit025:{ID:"cit025",displayName:"Bardstown Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cit025_proxylogo.png"},
  che050:{ID:"che050",displayName:"Chesapeake Bay Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_che050_proxylogo.png"},nor100:{ID:"nor100",displayName:"CL Tel",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nor100_proxylogo.png"},ser060:{ID:"ser060",displayName:"Clear Choice Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ser060_proxylogo.png"},war020:{ID:"war020",displayName:"CLICK1.NET",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_war020_proxylogo.png"},
  com160:{ID:"com160",displayName:"Co-Mo Connect",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_com160_proxylogo.png"},wbi010:{ID:"wbi010",displayName:"Comlink",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wbi010_proxylogo.png"},doy010:{ID:"doy010",displayName:"Doylestown Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_doy010_proxylogo.png"},dtc020:{ID:"dtc020",displayName:"DTC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dtc020_proxylogo.png"},
  epb020:{ID:"epb020",displayName:"EPB Smartnet",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_epb020_proxylogo.png"},fam010:{ID:"fam010",displayName:"FamilyView CableVision",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_fam010_proxylogo.png"},far020:{ID:"far020",displayName:"Farmers Mutual Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_far020_proxylogo.png"},farmerstel:{ID:"farmerstel",displayName:"FTCtv",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/logos/32/Screen_Shot_2014-05-08_at_3.33.58_PM.png"},
  hae010:{ID:"hae010",displayName:"Haefele TV Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_hae010_proxylogo.png"},hin020:{ID:"hin020",displayName:"Hinton CATV Co.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_hin020_proxylogo.png"},intrmtncable:{ID:"intrmtncable",displayName:"Inter Mountain Cable",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/logos/33/23_op33_mso_list_logo.png"},"itv-bitwise":{ID:"itv-bitwise",displayName:"iTV-3",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/logos/13/iptv3-picker-logo.png"},
  lan010:{ID:"lan010",displayName:"Langco",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_lan010_proxylogo.png"},nttclpc010:{ID:"nttclpc010",displayName:"LPC Connect",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttclpc010_proxylogo.png"},mar010:{ID:"mar010",displayName:"Marne and Elk Horn Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mar010_proxylogo.png"},mcc040:{ID:"mcc040",displayName:"McClure Telephone Co.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mcc040_proxylogo.png"},
  nttcsli010:{ID:"nttcsli010",displayName:"myEVTV.com",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttcsli010_proxylogo.png"},ral010:{ID:"ral010",displayName:"Ralls Technologies",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ral010_proxylogo.png"},red040:{ID:"red040",displayName:"Red River Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_red040_proxylogo.png"},mol010:{ID:"mol010",displayName:"Reliance Connects",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mol010_proxylogo.png"},
  sco050:{ID:"sco050",displayName:"Scottsboro Electric Power Board",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sco050_proxylogo.png"},sou025:{ID:"sou025",displayName:"SKT",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sou025_proxylogo.png"},nttcsmi010:{ID:"nttcsmi010",displayName:"Smithville Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttcsmi010_proxylogo.png"},spi005:{ID:"spi005",displayName:"Spillway Communications, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_spi005_proxylogo.png"},
  tel050:{ID:"tel050",displayName:"Tele-Media Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tel050_proxylogo.png"},che040:{ID:"che040",displayName:"TruVista",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_che040_proxylogo.png"},tvc015:{ID:"tvc015",displayName:"TVC Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tvc015_proxylogo.png"},"usoutherncalifornia_auth-gateway_net":{ID:"usoutherncalifornia_auth-gateway_net",displayName:"University of Southern California",
  logoURL:"https://image.vam.synacor.com.edgesuite.net/cb/a6/cba6170d84ec72a19e4cd89b9526cf9afce91f2e"},wes005:{ID:"wes005",displayName:"West Alabama TV Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wes005_proxylogo.png"},win010:{ID:"win010",displayName:"Windomnet/SMBS",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_win010_proxylogo.png"},bul010:{ID:"bul010",displayName:"Bulloch Telephone Cooperative",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bul010_proxylogo.png"},
  mid055:{ID:"mid055",displayName:"Cobalt TV (Mid-State Community TV)",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mid055_proxylogo.png"},gri010:{ID:"gri010",displayName:"Gridley Cable Inc",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_gri010_proxylogo.png"},"hbc_auth-gateway_net":{ID:"hbc_auth-gateway_net",displayName:"HBC",logoURL:"https://image.vam.synacor.com.edgesuite.net/6f/5d/6f5de248ee528ce8df4ed24d39ecb43fa02a6178"},mtc010:{ID:"mtc010",displayName:"MTC Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mtc010_proxylogo.png"},
  nor260:{ID:"nor260",displayName:"NDTC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nor260_proxylogo.png"},"oregonstate_auth-gateway_net":{ID:"oregonstate_auth-gateway_net",displayName:"Oregon State University",logoURL:"https://image.vam.synacor.com.edgesuite.net/c7/68/c768184715c18ed8c455dc64360e9dd9ae6fd164"},cci020:{ID:"cci020",displayName:"Packerland Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cci020_proxylogo.png"},mid050:{ID:"mid050",displayName:"Partner Communications Cooperative",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mid050_proxylogo.png"},randolph:{ID:"randolph",displayName:"Randolph Communications",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/logos/48/38_op0_mso_list_logo.jpg"},twi040:{ID:"twi040",displayName:"Twin Lakes",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_twi040_proxylogo.png"},all025:{ID:"all025",displayName:"Allen's Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_all025_proxylogo.png"},btc040:{ID:"btc040",
  displayName:"BTC Vision - Nahunta",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_btc040_proxylogo.png"},coa020:{ID:"coa020",displayName:"Coast Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_coa020_proxylogo.png"},nor105:{ID:"nor105",displayName:"Communications 1 Cablevision, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nor105_proxylogo.png"},cra010:{ID:"cra010",displayName:"Craw-Kan Telephone",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cra010_proxylogo.png"},
  dpc010:{ID:"dpc010",displayName:"D and P Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dpc010_proxylogo.png"},nttcdel010:{ID:"nttcdel010",displayName:"Delcambre Telephone LLC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttcdel010_proxylogo.png"},gar040:{ID:"gar040",displayName:"Gardonville Cooperative Telephone Association",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_gar040_proxylogo.png"},spc010:{ID:"spc010",displayName:"Hilliary Communications",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_spc010_proxylogo.png"},ind040:{ID:"ind040",displayName:"Independence Telecommunications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ind040_proxylogo.png"},irv010:{ID:"irv010",displayName:"Irvine Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_irv010_proxylogo.png"},tel140:{ID:"tel140",displayName:"LivCom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tel140_proxylogo.png"},new075:{ID:"new075",
  displayName:"New Hope Telephone Cooperative",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_new075_proxylogo.png"},far035:{ID:"far035",displayName:"OmniTel Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_far035_proxylogo.png"},pul010:{ID:"pul010",displayName:"PES Energize",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pul010_proxylogo.png"},phi010:{ID:"phi010",displayName:"Philippi Communications System",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_phi010_proxylogo.png"},
  pin060:{ID:"pin060",displayName:"Pineland Telephone Cooperative",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pin060_proxylogo.png"},par010:{ID:"par010",displayName:"PLWC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_par010_proxylogo.png"},qco010:{ID:"qco010",displayName:"QCOL",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_qco010_proxylogo.png"},rte010:{ID:"rte010",displayName:"RTEC Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_rte010_proxylogo.png"},
  stc010:{ID:"stc010",displayName:"SandT",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_stc010_proxylogo.png"},uin010:{ID:"uin010",displayName:"STRATA Networks",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_uin010_proxylogo.png"},swiftel:{ID:"swiftel",displayName:"Swiftel Communications",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/logos/50/40_op0_mso_list_logo.png"},tre010:{ID:"tre010",displayName:"Trenton TV Cable Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tre010_proxylogo.png"},
  tri110:{ID:"tri110",displayName:"TrioTel Communications, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tri110_proxylogo.png"},uni120:{ID:"uni120",displayName:"United Services",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_uni120_proxylogo.png"},cla050:{ID:"cla050",displayName:"Vast Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cla050_proxylogo.png"},ani030:{ID:"ani030",displayName:"WesTel Systems",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ani030_proxylogo.png"},
  bektel:{ID:"bektel",displayName:"BEK Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/BEK_Logo_color_2.png"},ada020:{ID:"ada020",displayName:"Adams Cable Service",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ada020_proxylogo.png"},tvc020:{ID:"tvc020",displayName:"Andycable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tvc020_proxylogo.png"},bee010:{ID:"bee010",displayName:"Bee Line Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bee010_proxylogo.png"},
  bel020:{ID:"bel020",displayName:"Bellevue Municipal Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bel020_proxylogo.png"},bev010:{ID:"bev010",displayName:"BEVCOMM",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bev010_proxylogo.png"},big020:{ID:"big020",displayName:"Big Sandy Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_big020_proxylogo.png"},nttccst010:{ID:"nttccst010",displayName:"Central Scott / CSTV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttccst010_proxylogo.png"},
  cha035:{ID:"cha035",displayName:"Chaparral CableVision",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cha035_proxylogo.png"},cha050:{ID:"cha050",displayName:"Chariton Valley Communication Corporation, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cha050_proxylogo.png"},nttcche010:{ID:"nttcche010",displayName:"Cherokee Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttcche010_proxylogo.png"},cit250:{ID:"cit250",displayName:"Citizens Mutual",
  logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cit250_proxylogo.png"},com071:{ID:"com071",displayName:"ComSouth Telesys",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_com071_proxylogo.png"},coo050:{ID:"coo050",displayName:"Coon Valley Telecommunications Inc",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_coo050_proxylogo.png"},sal040:{ID:"sal040",displayName:"DiamondNet",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sal040_proxylogo.png"},dtc010:{ID:"dtc010",
  displayName:"DTC Cable (Delhi)",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dtc010_proxylogo.png"},dum010:{ID:"dum010",displayName:"Dumont Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dum010_proxylogo.png"},ell010:{ID:"ell010",displayName:"ECTA",logoURL:"https://images2.watchtveverywhere.com/wtve/ell010proxylogo.png"},nor200:{ID:"nor200",displayName:"Empire Access",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nor200_proxylogo.png"},sal060:{ID:"sal060",
  displayName:"fibrant",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sal060_proxylogo.png"},foo010:{ID:"foo010",displayName:"Foothills Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_foo010_proxylogo.png"},grafton:{ID:"grafton",displayName:"GTI TV",logoURL:"https://static.c-span.org/assets/images/mvpd/Grafton.png"},htc010:{ID:"htc010",displayName:"Halstad Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_htc010_proxylogo.png"},htc030:{ID:"htc030",
  displayName:"HTC Communications Co. - IL",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_htc030_proxylogo.png"},k2c010:{ID:"k2c010",displayName:"K2 Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_k2c010_proxylogo.png"},nttcmah010:{ID:"nttcmah010",displayName:"Mahaska Communication Group",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttcmah010_proxylogo.png"},MAXXSOUTH:{ID:"MAXXSOUTH",displayName:"MaxxSouth Broadband",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/234"},
  nttcmin010:{ID:"nttcmin010",displayName:"Minford TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttcmin010_proxylogo.png"},"san040-02":{ID:"san040-02",displayName:"Mitchell Telecom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_san040-02_proxylogo.png"},mlg010:{ID:"mlg010",displayName:"MLGC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mlg010_proxylogo.png"},mou110:{ID:"mou110",displayName:"Mountain Telephone",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mou110_proxylogo.png"},
  mur010:{ID:"mur010",displayName:"Murray Electric System",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mur010_proxylogo.png"},nel020:{ID:"nel020",displayName:"Nelsonville TV Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nel020_proxylogo.png"},mid140:{ID:"mid140",displayName:"OPTURA",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mid140_proxylogo.png"},pan010:{ID:"pan010",displayName:"Panora Telco/Guthrie Center Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pan010_proxylogo.png"},
  pro035:{ID:"pro035",displayName:"PMT",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pro035_proxylogo.png"},vik011:{ID:"vik011",displayName:"Polar Cablevision",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_vik011_proxylogo.png"},qua010:{ID:"qua010",displayName:"Quality Cablevision",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_qua010_proxylogo.png"},rad010:{ID:"rad010",displayName:"Radcliffe Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_rad010_proxylogo.png"},
  car040:{ID:"car040",displayName:"Rainbow Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_car040_proxylogo.png"},rct010:{ID:"rct010",displayName:"RC Technologies",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_rct010_proxylogo.png"},res040:{ID:"res040",displayName:"RTC-Reservation Telephone Coop.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_res040_proxylogo.png"},"san040-01":{ID:"san040-01",displayName:"Santel",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_san040-01_proxylogo.png"},
  spa020:{ID:"spa020",displayName:"Spanish Fork Community Network",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_spa020_proxylogo.png"},sta025:{ID:"sta025",displayName:"Star Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sta025_proxylogo.png"},tricounty:{ID:"tricounty",displayName:"Tri-County Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/TCT.png"},tri025:{ID:"tri025",displayName:"TriCounty Telecom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tri025_proxylogo.png"},
  unitedtel:{ID:"unitedtel",displayName:"United Communications",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/logos/41/31_op41_mso_list_logo.png"},uni110:{ID:"uni110",displayName:"United Communications - TN",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_uni110_proxylogo.png"},val040:{ID:"val040",displayName:"Valley TeleCom Group",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_val040_proxylogo.png"},ver070:{ID:"ver070",displayName:"VTel",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ver070_proxylogo.png"},
  nttcvtx010:{ID:"nttcvtx010",displayName:"VTX1",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nttcvtx010_proxylogo.png"},web020:{ID:"web020",displayName:"Webster-Calhoun Cooperative Telephone Association",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_web020_proxylogo.png"},wes130:{ID:"wes130",displayName:"Wiatel",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wes130_proxylogo.png"},yadtel:{ID:"yadtel",displayName:"Yadtel Telecom",logoURL:"https://static.c-span.org/assets/images/mvpd/CSPAN-Yadtel 4-color 112 x 33.png"},
  alb020:{ID:"alb020",displayName:"Albany Mutual Telephone",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_alb020_proxylogo.png"},nwc010:{ID:"nwc010",displayName:"American Broadband Missouri",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nwc010_proxylogo.png"},"she030-02":{ID:"she030-02",displayName:"Ayersville Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_she030-02_proxylogo.png"},wir030:{ID:"wir030",displayName:"Beehive Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wir030_proxylogo.png"},
  ble020:{ID:"ble020",displayName:"Bledsoe Telephone Cooperative",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ble020_proxylogo.png"},bvt010:{ID:"bvt010",displayName:"Blue Valley Tele-Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_bvt010_proxylogo.png"},cab038:{ID:"cab038",displayName:"CableSouth Media 3",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cab038_proxylogo.png"},"mid180-02":{ID:"mid180-02",displayName:"Catalina Broadband Solutions",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mid180-02_proxylogo.png"},
  "dem010-06":{ID:"dem010-06",displayName:"Celect-Mosaic Telecom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dem010-06_proxylogo.png"},wat025:{ID:"wat025",displayName:"City Of Monroe",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wat025_proxylogo.png"},com150:{ID:"com150",displayName:"Community Cable and Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_com150_proxylogo.png"},coy010:{ID:"coy010",displayName:"commZoom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_coy010_proxylogo.png"},
  coo080:{ID:"coo080",displayName:"Cooperative Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_coo080_proxylogo.png"},cpt010:{ID:"cpt010",displayName:"CP-TEL",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_cpt010_proxylogo.png"},dun010:{ID:"dun010",displayName:"Dunkerton Telephone Cooperative",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_dun010_proxylogo.png"},for030:{ID:"for030",displayName:"FJ Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_for030_proxylogo.png"},
  tec010:{ID:"tec010",displayName:"Genuine Telecom",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tec010_proxylogo.png"},con020:{ID:"con020",displayName:"GreatWave Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_con020_proxylogo.png"},hbc010:{ID:"hbc010",displayName:"HandB Cable Services",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_hbc010_proxylogo.png"},ced010:{ID:"ced010",displayName:"Hartelco TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_ced010_proxylogo.png"},
  hig030:{ID:"hig030",displayName:"Highland Media",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_hig030_proxylogo.png"},lak130:{ID:"lak130",displayName:"Lakeland Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_lak130_proxylogo.png"},loc020:{ID:"loc020",displayName:"LISCO",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_loc020_proxylogo.png"},lon030:{ID:"lon030",displayName:"Lonsdale Video Ventures, LLC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_lon030_proxylogo.png"},
  min030:{ID:"min030",displayName:"MINET",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_min030_proxylogo.png"},mon060:{ID:"mon060",displayName:"Mon-Cre TVE",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mon060_proxylogo.png"},mou050:{ID:"mou050",displayName:"Mountain Village Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mou050_proxylogo.png"},jam030:{ID:"jam030",displayName:"NVC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_jam030_proxylogo.png"},
  fib010:{ID:"fib010",displayName:"Pathway",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_fib010_proxylogo.png"},pin070:{ID:"pin070",displayName:"Pine Belt Communications, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pin070_proxylogo.png"},pio060:{ID:"pio060",displayName:"Pioneer Broadband",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pio060_proxylogo.png"},pla020:{ID:"pla020",displayName:"Plant TiftNet, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_pla020_proxylogo.png"},
  rsf010:{ID:"rsf010",displayName:"RS Fiber",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_rsf010_proxylogo.png"},san020:{ID:"san020",displayName:"San Bruno Cable TV",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_san020_proxylogo.png"},scr010:{ID:"scr010",displayName:"Scranton Telephone Company",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_scr010_proxylogo.png"},sco020:{ID:"sco020",displayName:"STE",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_sco020_proxylogo.png"},
  swa010:{ID:"swa010",displayName:"Swayzee Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_swa010_proxylogo.png"},tra010:{ID:"tra010",displayName:"Trans-Video",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_tra010_proxylogo.png"},wav030:{ID:"wav030",displayName:"Waverly Communications Utility",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wav030_proxylogo.png"},wik010:{ID:"wik010",displayName:"Wiktel",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wik010_proxylogo.png"},
  wil070:{ID:"wil070",displayName:"Wilkes Communications, Inc.",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wil070_proxylogo.png"},WINDSTREAM:{ID:"WINDSTREAM",displayName:"Windstream Kinetic TV",logoURL:"https://tveverywhere.clearleap.com/cltve/subscriberPortal/showLogo/266"},wya010:{ID:"wya010",displayName:"Wyandotte Cable",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_wya010_proxylogo.png"},xit010:{ID:"xit010",displayName:"XIT Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_xit010_proxylogo.png"},
  yel010:{ID:"yel010",displayName:"Yelcot Communications",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_yel010_proxylogo.png"},"mid180-01":{ID:"mid180-01",displayName:"yondoo",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_mid180-01_proxylogo.png"},catc:{ID:"catc",displayName:"Central Arkansas Telephone Cooperative",logoURL:"https://ava-uploads.s3.amazonaws.com/uploads/logos/53/45_op53_mso_list_logo.jpg"},for080:{ID:"for080",displayName:"Forsyth CableNet",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_for080_proxylogo.png"},
  nor115:{ID:"nor115",displayName:"NCC",logoURL:"https://static.c-span.org/assets/images/mvpd/wtve_nor115_proxylogo.png"}};
  function apOnTemplateReady(){bcAuth.showMessage("Authentication in progress...");bcAuth.addEventListener(brightcove.api.events.AuthEvent.AUTH_NEEDED,apOnAuthNeeded);window.entitlementLoaded=function(){window.ae.setRequestor("C-SPAN");window.ae.checkAuthentication()};window.setToken=function(a,g){bcAuth.playWithToken(g,"adobepass")};window.tokenRequestFailed=function(a,g,f){bcAuth.removeMessage();if(f&&0<f.length)a=f;else switch(g){case "User not Authorized Error":a="You are not authorized to view the C-SPAN live streams.";
  break;case "User Not Authenticated Error":case "Provider not Selected Error":a="You must log in with your television provider in order to view the C-SPAN Live Streams.";break;default:a="An error occurred while attempting to play this video. Please try again."}apAuthModalError(a)};window.sendTrackingData=function(a,g){switch(a){case "mvpdSelection":ga("send","event","adobepass","selectedMVPD",g[0]);break;case "authenticationDetection":g[0]?(ga("send","pageview",{dimension1:g[1]}),g[3]||ga("send","event",
  "adobepass","authN",g[1])):ga("send","pageview",{dimension1:"noMVPD"});break;case "authorizationDetection":g[0]?g[3]||ga("send","event","adobepass","authZsuccess",g[1]):g[1]&&ga("send","event","adobepass","authZfail",g[1])}};window.setAuthenticationStatus=function(a,g){bcAuth.removeMessage();a?window.ae.getSelectedProvider():(0<$("#adobe-pass-mvpd-info .ap-loading").length&&($("#adobe-pass-mvpd-info .hidden").removeClass("hidden"),$("#adobe-pass-mvpd-info .ap-loading").remove()),void 0!=$("#brightcove-player-embed").data("altbcid")&&
  (removeBrightcovePlayer(),buildBrightcovePlayer(!0)))};window.displayProviderDialog=function(a){if(0<a.length){var g={RCN:{ID:"RCN",displayName:"RCN"},Grande:{ID:"Grande",displayName:"Grande"}},f;for(f in g)a.push(g[f]);a.sort(function(a,b){return a.displayName.toLowerCase().localeCompare(b.displayName.toLowerCase())});console.log("missing logos:");for(f in a)!MVPDinfo.hasOwnProperty(a[f].ID)&&a[f].logoURL&&0<a[f].logoURL.length&&console.log("'"+a[f].ID+"': {'ID': '"+a[f].ID+"', 'displayName': '"+
  a[f].displayName+"', 'logoURL': '"+a[f].logoURL+"'},");console.log("missing displayNames:");for(f in a)MVPDinfo.hasOwnProperty(a[f].ID)||a[f].logoURL&&0!=a[f].logoURL.length||console.log("'"+a[f].ID+"': {'ID': '"+a[f].ID+"', 'displayName': '"+a[f].displayName+"'},");createContentOverlay();$("#content-overlay").append("<div class='content-overlay-content' id='bc-provider-select'><a class='content-overlay-close'><i class='icon-cancel-circle'></i></a><img class='cspan-networks-logo' src='https://static.c-span.org/assets/images/C-SPANnetworks.png'/><div id='mvpd-picker-div'><p>Choose your television provider, Sign In and begin viewing.</p><ul class='featured-providers'></ul><div class='provider-options'><select class='dropdown' name='provider-options'><option value=''>More Television Providers</option></select></div></div></div>");
  -1<navigator.userAgent.toLowerCase().indexOf("safari")&&-1==navigator.userAgent.toLowerCase().indexOf("chrome")&&-1==navigator.userAgent.indexOf("Android")&&$("#mvpd-picker-div p:first").append("<br/><a href='/about/faq/#provider-authentication-issues'><i class='icon-info-2'></i> Safari Users: information regarding television provider Sign In issues</a>");var c=!0;void 0!=$("#brightcove-player-embed").data("testnorelease")&&(c=!1);var b=[];for(f in a){var e=a[f].ID;MVPDinfo.hasOwnProperty(e)&&MVPDinfo[e].norelease&&
  c||(MVPDinfo.hasOwnProperty(e)&&(MVPDinfo[e].displayName&&MVPDinfo[e].nameOverride&&(a[f].displayName=MVPDinfo[e].displayName),MVPDinfo[e].featured&&(MVPDinfo[e].logoURL&&MVPDinfo[e].logoOverride&&(a[f].logoURL=MVPDinfo[e].logoURL),b[MVPDinfo[e].featured]=a[f])),$("#bc-provider-select select").append('<option value="'+a[f].ID+'">'+a[f].displayName+"</option>"))}for(f in b)$("#bc-provider-select ul.featured-providers").append('<li data-providerid="'+b[f].ID+'"><span class="valign-help"></span><img src="'+
  b[f].logoURL+'" title="'+b[f].displayName+'" alt="'+b[f].displayName+'"/></li>');$("#bc-provider-select ul.featured-providers").append("<li class='clear'></li>");$("#content-overlay select.dropdown").easyDropDown({cutOff:10});$("#content-overlay").off("click","a.content-overlay-close");$("#content-overlay").on("click","a.content-overlay-close",function(a){a.preventDefault();destroyContentOverlay();bcAuth.removeMessage();$("#brightcove-player-embed").hasClass("use-non-TVE-alternate")||bcAuth.showMessage("You must log in with your television provider in order to view the C-SPAN Live Streams.",
  !1);return!1});$("#content-overlay").off("change","select");$("#content-overlay").on("change","select",function(a){if(g.hasOwnProperty($(this).val()))return-1<window.location.href.indexOf("?")?window.location=window.location.href+"&exitTVE":window.location=window.location.href+"?exitTVE",!1;a.preventDefault();apIframeProvider=$(this).val();window.ae.setSelectedProvider($(this).val());return!1});$("#content-overlay").off("click","ul.featured-providers li");$("#content-overlay").on("click","ul.featured-providers li",
  function(a){a.preventDefault();apIframeProvider=$(this).data("providerid");window.ae.setSelectedProvider($(this).data("providerid"));return!1});apModalResize()}};window.selectedProvider=function(a){$("#adobe-pass-mvpd-info .ap-content").html("");if(MVPDinfo.hasOwnProperty(a.MVPD)){a=a.MVPD;var g=MVPDinfo[a].displayName;MVPDinfo[a].logoURL&&(g=MVPDinfo[a].logoFullsize?"<img class='mvpd-logo-featured' src='"+MVPDinfo[a].logoURL+"' alt='"+MVPDinfo[a].displayName+"'/>":"<img class='mvpd-logo-non-featured' src='"+
  MVPDinfo[a].logoURL+"' alt='"+MVPDinfo[a].displayName+"'/>");MVPDinfo[a].linkURL?MVPDinfo[a].androidURL&&-1<navigator.userAgent.indexOf("Android")?$("#adobe-pass-mvpd-info .ap-content").append("<a class='mvpd-logo-wrapper' href='"+MVPDinfo[a].androidURL+"'>"+g+"</a><br/>"):MVPDinfo[a].iosURL&&(-1<navigator.userAgent.indexOf("iPhone")||-1<navigator.userAgent.indexOf("iPad")||-1<navigator.userAgent.indexOf("iPod"))?$("#adobe-pass-mvpd-info .ap-content").append("<a class='mvpd-logo-wrapper' href='"+
  MVPDinfo[a].iosURL+"'>"+g+"</a><br/>"):$("#adobe-pass-mvpd-info .ap-content").append("<a class='mvpd-logo-wrapper' href='"+MVPDinfo[a].linkURL+"'>"+g+"</a><br/>"):$("#adobe-pass-mvpd-info .ap-content").append("<span class='mvpd-logo-wrapper'>"+g+"</span><br/>");MVPDinfo[a].logoPersist&&$("#adobe-pass-mvpd-info").addClass("mvpd-logo-persist")}void 0!=bcExpMod&&"html"==bcExpMod.experience.type&&(a=getAPResourceId())&&window.ae.getAuthorization(a,window.location.href);$("#adobe-pass-mvpd-info .ap-content").append("<p>You are currently signed in to watch live TV.</p><a class='ap-logout' href='#'>Sign Out</a>");
  $("#adobe-pass-mvpd-info a.ap-logout").on("click",function(a){a.preventDefault();window.ae.logout();return!1})};window.createIFrame=function(a,g){apIframeHeight=g;apIframeWidth=a;MVPDinfo.hasOwnProperty(apIframeProvider)&&200<MVPDinfo[apIframeProvider].width&&(apIframeWidth=Math.max(a,MVPDinfo[apIframeProvider].width));MVPDinfo.hasOwnProperty(apIframeProvider)&&200<MVPDinfo[apIframeProvider].height&&(apIframeHeight=Math.max(g,MVPDinfo[apIframeProvider].height));$("#mvpd-picker-div").remove();$("#bc-provider-select").append("<iframe id='mvpdframe' frameborder='0' style='width:"+
  a+"px; height:"+g+"px; border: none;'></iframe>");window.frames.mvpdframe.name="mvpdframe";apModalResize()};$("#adobe-pass-mvpd-info a.ap-login").on("click",function(a){a.preventDefault();(a=getAPResourceId())&&window.ae.getAuthorization(a,window.location.href)});$(document).on({scroll:function(a){$("#adobe-pass-mvpd-info").hasClass("mvpd-logo-persist")&&(a=parseInt($("#adobe-pass-mvpd-info").offset().top,10)+parseInt($("#adobe-pass-mvpd-info").height(),10),!$("#adobe-pass-mvpd-info").hasClass("mvpd-logo-fixed")&&
  $(this).scrollTop()>a?$("#adobe-pass-mvpd-info").addClass("mvpd-logo-fixed"):$("#adobe-pass-mvpd-info").hasClass("mvpd-logo-fixed")&&$(this).scrollTop()<=a&&$("#adobe-pass-mvpd-info").removeClass("mvpd-logo-fixed"))}});$.getScript($("#brightcove-player-embed").data("apjs"))}function apOnAuthNeeded(a){"authNeeded"===a.type&&(bcAuth.removeMessage(),bcAuth.showMessage("Authorization in Progress",!0),(a=getAPResourceId())&&window.ae.getAuthorization(a,window.location.href))}
  function apModalResize(){var a=$("#bc-provider-select");if(0<$(a).length){var g=$(window).height(),f=$(window).width(),c;400>f||400>g?($(a).hasClass("content-overlay-content-phone")||$(a).addClass("content-overlay-content-phone"),c=f):($(a).hasClass("content-overlay-content-phone")&&$(a).removeClass("content-overlay-content-phone"),g=Math.min(800,g)-parseInt($(a).css("marginTop"),10),c=f-2*parseInt($(a).css("paddingLeft"),10));f=$("#mvpdframe");if(0<$(f).length){g=Math.min(apIframeHeight+80,g);c=
  Math.min(apIframeWidth,c);var b=g-80-2*parseInt($(a).css("paddingLeft"),10);$(a).css({height:g+"px",width:c+"px"});$(f)[0].setAttribute("width",c);$(f)[0].setAttribute("height",b);$(f).css({height:b+"px",width:c+"px"})}else $(a).css({maxHeight:g+"px",maxWidth:c+"px"})}}
  function getAPResourceId(a){void 0==a&&(a=$("#brightcove-player-embed").data("resourceid"));void 0!=a?-1==a.indexOf("<rss")&&(a="<rss version='2.0' xmlns:media='http://search.yahoo.com/mrss/'><channel><title>"+a+"</title><item><title>"+$("#brightcove-player-embed").data("bctitle")+"</title><guid>"+$("#brightcove-player-embed").data("bcid")+"</guid><media:rating scheme='urn:v-chip'>UR</media:rating></item></channel></rss>"):a=!1;return a}
  function apAuthModalError(a){var g="",f=a.match(/(http(?:s)?:\/\/)?(?:www\.)?(?:[A-Za-z0-9\-]+\.)+[A-Za-z0-9\-]+(?:\/[\+~%\/\.\w\-]*)(?:(?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?/);if(f){var c=f[0];if(void 0==f[1]||0==f[1].length)c="https://"+c;a.indexOf(f[0])==a.length-f[0].length?(g=c,a=a.replace(f[0],"")):a=a.replace(f[0],"<a href='"+c+"' target='_blank'>"+f[0]+"</a>")}createContentOverlay();$("#content-overlay").append("<div class='content-overlay-content' id='bc-ap-error'><a class='content-overlay-close'><i class='icon-cancel-circle'></i></a><h3 class='content-overlay-header'><i class='icon-warning-2'></i> User Authorization Error</h3><p>"+
  a+"</p><div class='content-overlay-buttons'><a class='bc-error-close content-overlay-button-link' href='#'>OK</a></div></div>");0<g.length&&$("#content-overlay .bc-error-close").after(" | <a class='content-overlay-button-link' href='"+g+"' target='_blank'>More Info</a>");$("#content-overlay").off("click","a.content-overlay-close, a.bc-error-close");$("#content-overlay").on("click","a.content-overlay-close, a.bc-error-close",function(a){a.preventDefault();destroyContentOverlay();return!1})};var bcExp,APIMods,bcPlayer,bcExpMod,bcAuth,bcResizeTimer;function bcOnTemplateLoad(a){var g=document.getElementById(a);console.log("el.tagName: "+g.tagName);"IFRAME"===g.tagName&&g.setAttribute("allowfullscreen","allowfullscreen");bcExp=brightcove.api.getExperience(a);APIMods=brightcove.api.modules.APIModules;bcPlayer=bcExp.getModule(APIMods.VIDEO_PLAYER);bcExpMod=bcExp.getModule(APIMods.EXPERIENCE);bcAuth=bcExp.getModule(APIMods.AUTH);bcResizeTimer=null}
  function bcOnTemplateReady(a){bcResponsiveResize();bcPlayer.addEventListener(brightcove.api.events.MediaEvent.BEGIN,bcSetPlayerTimeout);void 0==$("#brightcove-player-embed").data("apjs")||$("#brightcove-player-embed").hasClass("use-non-TVE-alternate")||$("#brightcove-player-embed").hasClass("no-TVE-available")||"function"!=typeof apOnTemplateReady?0<$("#adobe-pass-mvpd-info .ap-loading").length&&$("#adobe-pass-mvpd-info .ap-loading").hide():(0<$("#adobe-pass-mvpd-info .ap-loading").length&&$("#adobe-pass-mvpd-info .ap-loading").show(),
  apOnTemplateReady())}
  function bcSetPlayerTimeout(){setTimeout(function(){bcPlayer.pause();$("#brightcove-player-embed").remove();createContentOverlay();$("#content-overlay").append("<div class='content-overlay-content'><a class='content-overlay-close'><i class='icon-cancel-circle'></i></a><h3 class='content-overlay-header'>Are you still there?</h3><p>This page has timed out. To resume playback, please refresh the page.</p><div class='content-overlay-buttons'><a class='content-overlay-button-link' href='"+window.location.href+
  "'>Resume Playback</a> <a class='bc-error-close' href='#'>Cancel</a> </div></div>");$("#content-overlay").off("click","a.content-overlay-close, a.bc-error-close");$("#content-overlay").on("click","a.content-overlay-close, a.bc-error-close",function(a){a.preventDefault();destroyContentOverlay();return!1})},72E5)}function bcResponsiveResize(){if(void 0!=bcExpMod&&"html"==bcExpMod.experience.type){var a=$(".brightcove-wrapper").width();bcExpMod.setSize(a,Math.floor(.5625*a))}}
  function hideBrightcovePlayer(){$("#brightcove-player-embed").hasClass("bc-hidden")||(void 0!=bcPlayer&&bcPlayer.pause(!0),$("#brightcove-player-embed").addClass("bc-hidden"))}function showBrightcovePlayer(){$("#brightcove-player-embed").hasClass("bc-hidden")&&($("#brightcove-player-embed").removeClass("bc-hidden"),bcResponsiveResize())}
  function loadBrightcovePlayer(){0<$("#brightcove-player-embed").length&&($(window).resize(function(){clearTimeout(bcResizeTimer);bcResizeTimer=setTimeout(function(){bcResponsiveResize();"function"==typeof apModalResize&&apModalResize()},100)}),0<$(".cookie-disabled-warning").length&&("cookie"in document&&-1<(document.cookie="test").indexOf.call(document.cookie,"test")?$(".cookie-disabled-warning").remove():$(".cookie-disabled-warning").removeClass("hidden")),buildBrightcovePlayer(!1))}
  function buildBrightcovePlayer(a){var g=$("#brightcove-player-embed").data("bcid"),f=$("#brightcove-player-embed").data("bcplayerid"),c=$("#brightcove-player-embed").data("bcplayerkey");$("#brightcove-player-embed").removeClass("no-TVE-available");a&&void 0!=$("#brightcove-player-embed").data("altbcid")?($("#brightcove-player-embed").addClass("use-non-TVE-alternate"),g=$("#brightcove-player-embed").data("altbcid"),f=$("#brightcove-player-embed").data("altbcplayerid"),c=$("#brightcove-player-embed").data("altbcplayerkey")):
  $("#brightcove-player-embed").data("bcid")==$("#brightcove-player-embed").data("altbcid")&&($("#brightcove-player-embed").addClass("no-TVE-available"),g=$("#brightcove-player-embed").data("altbcid"),f=$("#brightcove-player-embed").data("altbcplayerid"),c=$("#brightcove-player-embed").data("altbcplayerkey"));a="";"https:"===window.location.protocol&&(a='<param name="secureConnections" value="true" /><param name="secureHTMLConnections" value="true" />');$("#brightcove-player-embed").html('<object id="myExperience'+
  (new Date).getTime()+'" class="BrightcoveExperience"><param name="bgcolor" value="#FFFFFF" /><param name="width" value="1024" /><param name="height" value="576" /><param name="playerID" value="'+f+'" /><param name="playerKey" value="'+c+'" /><param name="isVid" value="true" /><param name="isUI" value="true" /><param name="dynamicStreaming" value="true" /><param name="@videoPlayer" value="'+g+'" /><param name="includeAPI" value="true" /><param name="templateLoadHandler" value="bcOnTemplateLoad" /><param name="templateReadyHandler" value="bcOnTemplateReady" /><param name="wmode" value="opaque" />'+
  a+"</object>");brightcove.createExperiences()}function removeBrightcovePlayer(){$("#brightcove-player-embed").html("")};function mainMenuDropDowns(){$("li.has-subnav > a").click(function(a){a.preventDefault();a.stopPropagation();$($(this).parent().siblings()).each(function(){$(this).hasClass("expanded")&&$(this).find("> a").trigger("click")});$(this).parent().toggleClass("expanded");$(this).siblings("ul").slideToggle("fast")});$("#mob_nav_hb").on("click",function(a){"none"!=$("form.search").css("display")&&$("form.search").slideToggle("fast");a.preventDefault();$(this).siblings("ul").slideToggle("fast",function(){$(this).parent().toggleClass("expanded",
  function(){});if(!0===$(this).parent().hasClass("expanded")){var a=window.innerHeight-90;$("nav.main > ul").css("max-height",a)}})})}function closeMainMenuOnBlur(){$(document).click(function(){$("li.has-subnav.expanded > ul").slideUp("fast",function(){$(this).parent().removeClass("expanded")})})};function myCspanBookmarkLinks(){$("body").on("click","a.my-cspan-bookmark",function(a){a.preventDefault();var g=$(this);a=$(this).attr("href")+"&ajax";-1<navigator.userAgent.indexOf("MSIE ")&&(a+="="+(new Date).getTime().toString());$.ajax({type:"GET",url:a,success:function(a){if("true"==a)$(g).find("i.icon-bookmark-2").removeClass("icon-bookmark-2").addClass("icon-bookmark"),0<$(g).find("span").length&&"Add to MyC-SPAN"==$(g).find("span").text()&&$(g).find("span").text("Added to MyC-SPAN");else if("false"==
  a)$(g).find("i.icon-bookmark").removeClass("icon-bookmark").addClass("icon-bookmark-2"),0<$(g).find("span").length&&"Added to MyC-SPAN"==$(g).find("span").text()&&$(g).find("span").text("Add to MyC-SPAN");else if((a=a.match(/^nologin: (.+)$/))&&1<a.length){var c;1<window.location.pathname.length?(c=window.location.pathname,0<window.location.search.length&&(c+=window.location.search),window.location=a[1]+"&redir="+encodeURIComponent(c)):window.location=a[1]}}})})};function notificationToggle(a){a=a||0;0==a?$("a.notify").click(function(a){a.preventDefault();$("body").is(".home")?$(this).toggleClass("expanded").siblings(".notify-airing").slideToggle("slow"):$(this).toggleClass("expanded").parentsUntil(".details").siblings(".notify-airing").slideToggle("slow")}):$(a).click(function(a){a.preventDefault();$("body").is(".home")?$(this).toggleClass("expanded").siblings(".notify-airing").slideToggle("slow"):$(this).toggleClass("expanded").parentsUntil(".details").siblings(".notify-airing").slideToggle("slow")})}
  ;(function(a){function g(a,b){if(!(1<a.originalEvent.touches.length)){a.preventDefault();var c=a.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null);a.target.dispatchEvent(f)}}a.support.touch="ontouchend"in document;if(a.support.touch){var f=a.ui.mouse.prototype,c=f._mouseInit,b;f._touchStart=function(a){!b&&this._mouseCapture(a.originalEvent.changedTouches[0])&&(b=!0,this._touchMoved=!1,
  g(a,"mouseover"),g(a,"mousemove"),g(a,"mousedown"))};f._touchMove=function(a){b&&(this._touchMoved=!0,g(a,"mousemove"))};f._touchEnd=function(a){b&&(g(a,"mouseup"),g(a,"mouseout"),this._touchMoved||g(a,"click"),b=!1)};f._mouseInit=function(){this.element.on("touchstart",a.proxy(this,"_touchStart")).on("touchmove",a.proxy(this,"_touchMove")).on("touchend",a.proxy(this,"_touchEnd"));c.call(this)}}})(jQuery);
  var foreground,background,foreopacity,backopacity,font,fontsize,scrubTimeout,zoomTimeout,clipToolPlayerWidth=75,scrubbing=!1,clipping=!1,zoomOffset=.01,firstLoad=!0,previewing=!1,controlsEnter=null,controlsExit=null,controlsMove=null,shareLink,editLimit=30;
  function initPlayer(){jwplayer.key="4zTb1nc5O2ufr0klQspCz1lzIBnDmFK+PuaFKw==";if($("div#video-embed").length&&"undefined"!==typeof jwsetup){var a=navigator.userAgent,g=!1;0<a.lastIndexOf("Safari/")&&-1==a.lastIndexOf("Chrome/")&&-1==a.lastIndexOf("Mobile/")?(a=a.substr(a.lastIndexOf("Safari/")-6,1),6>parseInt(a)&&(g=!0)):a.lastIndexOf("MSIE")?(a=a.substr(a.lastIndexOf("MSIE")+4,3),8>=parseInt(a)&&(g=!0)):a.lastIndexOf("AOL")&&(g=!0);if(g){$("div#video-embed").html("<div class='unsupported'><div class='message'>Your browser is not supported. Please update your browser to its latest version or download one of the following browsers:</div><div class='browser-list'>Supported Browsers:<ul><li>Firefox 28+ - <a href='https://www.mozilla.org/en-US/firefox/new/'>Download</a></li><li>Chrome 34+ - <a href='https://www.google.com/chrome/'>Download</a></li><li>Internet Explorer 9+ (Windows Only)</li><li>Safari 6+ (Mac Only)</li></ul></div></div>");
  return}g=!1;try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),g=!0}catch(c){navigator.mimeTypes&&void 0!=navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(g=!0)}if(!g&&!$("div.video-option-links").length){var f=!1;"undefined"!==typeof jwsetup.playlist&&$.each(jwsetup.playlist[0].sources,function(a,b){"undefined"!=typeof b.file&&-1<b.file.indexOf("m3u8")&&(f=!0)});g=navigator.userAgent&&-1<navigator.userAgent.indexOf("Android");
  a=/iPad|iPhone|iPod/.test(navigator.platform);if(f&&!g&&!a){$("div#video-embed").html("<div class='unsupported'><div class='message'>The Adobe Flash Player required to view this video is not detected.<br/>You either do not have the Adobe Flash Player installed or it is disabled.<br/><a href='http://get.adobe.com/flashplayer/'><img src='https://static.c-span.org/assets/images/GetAdobeFlashPlayer_icon.png'></a></div></div>");return}}if(0==checkCookiesEnabled()){$("div#video-embed").html("<div class='unsupported'><div class='message'>Your browser has cookies disabled. You must have all cookies enabled for video playback to work.</div>");
  return}$("div#video-embed").hasClass("live-vod")||(setupPlayer(),initializePlayerAddons());ccSettings();shareOptions()}$("div.video-option-links").length&&"undefined"!==typeof jwsetup&&($("div.VLplayer-sharing-options").hide(),$("div.video-embed").hide(),$("a.live-vod-toggle-live").click(function(a){a.preventDefault();$("a.live-vod-toggle-link").removeClass("current");$(this).addClass("current");jwplayer("video-embed").remove();$("div.VLplayer-sharing-options").hide();showBrightcovePlayer();a=window.location.href;
  a=a.replace("&vod","");history.replaceState({},document.title,a)}),$("a.live-vod-toggle-vod").click(function(a){a.preventDefault();$("a.live-vod-toggle-link").removeClass("current");$(this).addClass("current");hideBrightcovePlayer();setupPlayer();initializePlayerAddons();$("div.VLplayer-sharing-options").show();a=window.location.href;-1==a.indexOf("&vod")&&(a+="&vod");history.replaceState({},document.title,a)}));"undefined"!==typeof jwsetup&&"undefined"!==typeof jwsetup.vodfirst&&1==jwsetup.vodfirst&&
  $("a.live-vod-toggle-vod").click()}
  function setupPlayer(){setCaptionVariables();var a="undefined"!==typeof jwsetup.cliptool?1:0;"undefined"!==typeof jwsetup.playlist&&firstLoad&&(navigator.userAgent&&-1<navigator.userAgent.indexOf("Android")?jwsetup.androidhls=!0:jwsetup.primary="flash",firstLoad=!1);if("undefined"===typeof jwsetup.playlist&&"undefined"!==typeof jwsetup.sources&&1<jwsetup.sources.length){var g="https://static.c-span.org/assets/documents/grimalkin?n="+(new Date).getTime(),f,c;f=(new Date).getTime();$.ajax({url:g,success:function(a){c=
  (new Date).getTime();speed=(4194304/((c-f)/1E3)/1024).toFixed(0);var b=jwsetup.sources[0].bitrate;$.each(jwsetup.sources,function(a,c){parseInt(c.bitrate)>b&&parseInt(c.bitrate)<=speed&&(b=c.bitrate)});$.each(jwsetup.sources,function(a,c){c.bitrate==b&&(jwsetup.sources[a]["default"]=!0)})},async:!1})}jwsetup.captions={color:foreground,fontSize:fontsize/1.66,fontFamily:font,fontOpacity:foreopacity,backgroundColor:background,backgroundOpacity:backopacity};a||(jwsetup.advertising={client:"googima",tag:"https://pubads.g.doubleclick.net/gampad/ads?sz=1024x576&iu=/52143677/CspanPrerollVideos&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]"});
  jwsetup.ga={};jwsetup.width="100%";jwsetup.aspectratio="16:9";jwsetup.stretching="uniform";var b=jwplayer("video-embed");b.setup(jwsetup);var g=hexToRgb(foreground),e=hexToRgb(background);$("div.cc-preview-text").css({color:"rgba("+g.r+", "+g.g+", "+g.b+", "+foreopacity/100+")",background:"rgba("+e.r+", "+e.g+", "+e.b+", "+backopacity/100+")","font-family":font,"font-size":fontsize+"px"});if("undefined"!==typeof jwsetup.offset){var d=!1,h=jwsetup.offset+jwsetup.length,k=!0,m=!0;b.on("play",function(a){if(k){k=
  !1;var b=jwplayer("video-embed");b.seek(jwsetup.offset);$("div.jw-slider-time div.jw-slider-container").append("<div class='jw-clip'></div>");var c=0;a=secondsToTime(jwsetup.length);$("span.jw-text.jw-text-duration").html((0!=a.h?9>=a.h?"0"+a.h+":":a.h+":":"")+(9>=a.m?"0"+a.m+":":a.m+":")+(9>=a.s?"0"+a.s:a.s));b.on("seek",function(a){if(m)m=!1;else if(a.position<jwsetup.offset-3||a.position>h+3)a=secondsToTime(b.getDuration()),$("span.jw-text.jw-text-duration").html((0!=a.h?9>=a.h?"0"+a.h+":":a.h+
  ":":"")+(9>=a.m?"0"+a.m+":":a.m+":")+(9>=a.s?"0"+a.s:a.s)),d=!0});b.on("time",function(a){0==c&&(c=b.getDuration(),$("div.jw-clip").css("left",jwsetup.offset/c*100+"%"),$("div.jw-clip").css("width",jwsetup.length/c*100+"%"));if(!d&&0!=c&&0<b.getPosition()-jwsetup.offset&&a.position<=h&&a.position>=jwsetup.offset){var e=secondsToTime(b.getPosition()-jwsetup.offset);$("span.jw-text.jw-text-elapsed").html((0!=e.h?9>=e.h?"0"+e.h+":":e.h+":":"")+(9>=e.m?"0"+e.m+":":e.m+":")+(9>=e.s?"0"+e.s:e.s));e=secondsToTime(jwsetup.length);
  $("span.jw-text.jw-text-duration").html((0!=e.h?9>=e.h?"0"+e.h+":":e.h+":":"")+(9>=e.m?"0"+e.m+":":e.m+":")+(9>=e.s?"0"+e.s:e.s))}a.position>=h&&a.position<h+3&&!d?(b.seek(jwsetup.offset),b.pause(!0),e=secondsToTime(b.getPosition()-jwsetup.offset),$("span.jw-text.jw-text-elapsed").html((0!=e.h?9>=e.h?"0"+e.h+":":e.h+":":"")+(9>=e.m?"0"+e.m+":":e.m+":")+(9>=e.s?"0"+e.s:e.s)),e=secondsToTime(jwsetup.length),$("span.jw-text.jw-text-duration").html((0!=e.h?9>=e.h?"0"+e.h+":":e.h+":":"")+(9>=e.m?"0"+e.m+
  ":":e.m+":")+(9>=e.s?"0"+e.s:e.s))):!m&&(a.position<jwsetup.offset-6||a.position>h+6)&&(d=!0)})}})}0<jwsetup.start&&(k=!0,b.on("play",function(a){k&&(k=!1,a=jwsetup.start,a<=b.getDuration()&&b.seek(a))}));g="undefined"!==typeof jwsetup.clipid?{clipid:jwsetup.clipid}:{progid:jwsetup.clipprog};e=getParentUrl();null!=e&&-1==e.indexOf("c-span.org")&&(g.ref=e);$.ajax({type:"GET",url:jwsetup.dynamic+"/common/services/viewLog.php",data:g});a&&(b.play(!0),b.on("firstFrame",function(){"playing"==b.getState()&&
  b.pause(!0);b.resize(clipToolPlayerWidth+"%","auto");$("div#video-embed").parent().toggleClass("clip-tool");clipping=!0;clipControls()}));if("undefined"!==typeof jwsetup.endoffset)b.on("time",function(a){a=a.position;b.getDuration()-jwsetup.endoffset<a&&(b.seek(0),b.pause(!0))});if("undefined"!==typeof jwsetup.startOffset&&("undefined"==typeof jwsetup.offset||0==jwsetup.offset))b.on("firstFrame",function(a){if("undefined"!==typeof jwsetup.clipid){$("div.jw-slider-time div.jw-slider-container").append("<div class='jw-clip'></div>");
  a=b.getDuration();var c="undefined"!==typeof jwsetup.endoffset?a-jwsetup.endoffset:a;$("div.jw-clip").css("left",jwsetup.startOffset/a*100+"%");$("div.jw-clip").css("width",(c-jwsetup.startOffset)/a*100+"%")}b.seek(jwsetup.startOffset)})}
  function initializePlayerAddons(){var a=jwplayer("video-embed");a.addButton("https://static.c-span.org/assets/images/player/cc50.png","Closed Caption Settings",function(){var a=jwplayer("video-embed");$("form.VLplayer-cc-form").toggle();$("form.VLplayer-cc-form").is(":visible")?("idle"!=a.getState()&&a.pause(!0),a.getPosition(),1==a.getFullscreen()&&a.setFullscreen(!1)):"idle"!=a.getState()&&a.play(!0)},"cc-settings");a.addButton("https://static.c-span.org/assets/images/player/forwardtext50.png",
  "Jump Forward 10 Seconds",function(){var a=jwplayer("video-embed"),c=a.getPosition(),b=a.getDuration(),c=Math.min(b,c+10);a.seek(c)},"forward");a.addButton("https://static.c-span.org/assets/images/player/play70.png","Play/Pause",function(){var a=jwplayer("video-embed");"playing"==a.getState()?a.pause(!0):a.play(!0)},"play");a.addButton("https://static.c-span.org/assets/images/player/rewindtext50.png","Jump Back 10 Seconds",function(){var a=jwplayer("video-embed"),c=a.getPosition(),c=Math.max(0,c-
  10);a.seek(c)},"rewind");a.on("time",function(a){$("div#video-embed img.cspan-bug").length||$("div#video-embed").append("<img src='https://static.c-span.org/assets/images/player/logo.png' class='cspan-bug'>")});a.on("firstFrame",function(a){$(".jw-dock").css("top",$("div#video-embed").height()/2-$(".jw-dock").height()/2);$("[button=cc-settings]").css("left",$(".jw-dock").width()/2-$("[button=cc-settings]").width()/2-10);$("div.jw-media").mouseenter(function(a){clearTimeout(controlsEnter);clearTimeout(controlsExit);
  controlsEnter=setTimeout(function(){$("div.jw-controls-right").show();$("div#video-embed img.cspan-bug").show()},500)}).mouseout(function(a){clearTimeout(controlsEnter);clearTimeout(controlsExit);controlsExit=setTimeout(function(){$("div.jw-controls-right").hide();$("div#video-embed img.cspan-bug").hide()},500)});$("div.jw-dock-button").mouseenter(function(a){clearTimeout(controlsExit)});$("div.VLplayer-sharing-options a.clip-button").length&&$("div.VLplayer-sharing-options a.clip-button").removeClass("noclip")}).on("resize",
  function(a){"idle"!=jwplayer("video-embed").getState()&&($(".jw-dock").css("top",$("div#video-embed").height()/2-$(".jw-dock").height()/2),$("[button=cc-settings]").css("left",$(".jw-dock").width()/2-$("[button=cc-settings]").width()/2-10),$(".jw-controls .jw-controls-right").show())}).on("fullscreen",function(a){"idle"!=jwplayer("video-embed").getState()&&($(".jw-dock").css("top",$("div#video-embed").height()/2-$(".jw-dock").height()/2),$("[button=cc-settings]").css("left",$(".jw-dock").width()/
  2-$("[button=cc-settings]").width()/2-10),$(".jw-controls .jw-controls-right").show())});a.on("play",function(f){"true"==$.cookie("cspanvl_cc")&&a.setCurrentCaptions(1);$(".jw-dock [button=play] .jw-dock-image").css("background-image",'url("https://static.c-span.org/assets/images/player/pause70.png")').toggleClass("pause")});a.on("pause",function(a){$(".jw-dock [button=play] .jw-dock-image").css("background-image",'url("https://static.c-span.org/assets/images/player/play70.png")').toggleClass("pause")});
  a.on("captionsChanged",function(a){0==a.track?$.removeCookie("cspanvl_cc",{path:"/"}):$.cookie("cspanvl_cc","true",{path:"/",expires:9999})});a.on("volume",function(f){$.cookie("cspanvl_volume",a.getVolume(),{expires:365,path:"/"})});var g=$.cookie("cspanvl_volume");g&&a.setVolume(g)}
  function ccSettings(){$("div#video-embed").parent().append("<form class='VLplayer-cc-form VLplayer-option-form-cc'><a class='VLplayer-option-form-close' aria-label='Close'><i class='icon-cancel-circle'></i></a><h3>Captions</h3><br/><label>Foreground: </label><label class='VLplayer-cc-color' title='white' style='background-color: rgb(255, 255, 255);'><input type='radio' name='forecolor' value='#FFF'></label><label class='VLplayer-cc-color' title='black' style='background-color: rgb(0, 0, 0);'><input type='radio' name='forecolor' value='#000'/></label><label class='VLplayer-cc-color' title='red' style='background-color: rgb(255, 0, 0);'><input type='radio' name='forecolor' value='#F00'/></label><label class='VLplayer-cc-color' title='green' style='background-color: rgb(0, 255, 0);'><input type='radio' name='forecolor' value='#0F0'/></label><label class='VLplayer-cc-color' title='blue' style='background-color: rgb(0, 0, 255);'><input type='radio' name='forecolor' value='#00F'/></label><label class='VLplayer-cc-color' title='yellow' style='background-color: rgb(255, 255, 0);'><input type='radio' name='forecolor' value='#FF0'/></label><label class='VLplayer-cc-color' title='magenta' style='background-color: rgb(255, 0, 255);'><input type='radio' name='forecolor' value='#F0F'/></label><label class='VLplayer-cc-color' title='cyan' style='background-color: rgb(0, 255, 255);'><input type='radio' name='forecolor' value='#0FF'/></label><br/><label class='VLplayer-cc-opacity'>Foreground Opacity: <input type='hidden' name='foreopacity' value='1.0'/><span class='current-value'>100%</span><span class='increase-value' aria-label='Increase Text Opacity'><i class='icon-plus-circle'></i></span><span class='decrease-value' aria-label='Decrease Text Opacity'><i class='icon-minus-circle'></i></span></label><br/><label>Background: </label><label class='VLplayer-cc-color' title='white' style='background-color: rgb(255, 255, 255);'><input type='radio' name='backcolor' value='#FFF'/></label><label class='VLplayer-cc-color' title='black' style='background-color: rgb(0, 0, 0);'><input type='radio' name='backcolor' value='#000'/></label><label class='VLplayer-cc-color' title='red' style='background-color: rgb(255, 0, 0);'><input type='radio' name='backcolor' value='#F00'/></label><label class='VLplayer-cc-color' title='green' style='background-color: rgb(0, 255, 0);'><input type='radio' name='backcolor' value='#0F0'/></label><label class='VLplayer-cc-color' title='blue' style='background-color: rgb(0, 0, 255);'><input type='radio' name='backcolor' value='#00F'/></label><label class='VLplayer-cc-color' title='yellow' style='background-color: rgb(255, 255, 0);'><input type='radio' name='backcolor' value='#FF0'/></label><label class='VLplayer-cc-color' title='magenta' style='background-color: rgb(255, 0, 255);'><input type='radio' name='backcolor' value='#F0F'/></label><label class='VLplayer-cc-color' title='cyan' style='background-color: rgb(0, 255, 255);'><input type='radio' name='backcolor' value='#0FF'/></label><br/><label class='VLplayer-cc-opacity'>Background Opacity: <input type='hidden' name='backopacity' value='1.0'/><span class='current-value'>100%</span><span class='increase-value' aria-label='Increase Background Opacity'><i class='icon-plus-circle'></i></span><span class='decrease-value' aria-label='Decrease Background Opacity'><i class='icon-minus-circle'></i></span></label><br/><label>Font: <select name='font'><option value='inherit'>Default</option><option value='sans-serif' style='font-family:sans-serif;'>Sans Serif</option><option value='serif' style='font-family:serif;'>Serif</option><option value='monospace' style='font-family:monospace;'>Monospace</option><option value='cursive' style='font-family:cursive;'>Cursive</option></select></label><br/><label class='VLplayer-cc-size'>Size: <input type='hidden' name='size' value='20'/><span class='current-value'>20</span><span class='increase-value' aria-label='Increase Font Size'><i class='icon-plus-circle'></i></span><span class='decrease-value' aria-label='Decrease Font Size'><i class='icon-minus-circle'></i></span></label><div class='preview'><img src='https://images.c-span.org/defaults/capitol.jpg'><div class='cc-preview-text'>TEXT SAMPLE</div></div><button type='button'>Save Changes</button></form>");$("form.VLplayer-cc-form").css("left",
  $("div#video-embed").width()/2-$("form.VLplayer-cc-form").width()/2);$("div#video-embed").resize(function(){$("form.VLplayer-cc-form").css("left",$("div#video-embed").width()/2-$("form.VLplayer-cc-form").width()/2)});$("form.VLplayer-cc-form input[name=forecolor][value="+foreground+"]").attr("checked","checked");$("form.VLplayer-cc-form input[name=backcolor][value="+background+"]").attr("checked","checked");$("form.VLplayer-cc-form input[name=foreopacity]").val(foreopacity/100).parent().children("span.current-value").html(foreopacity+
  "%");$("form.VLplayer-cc-form input[name=backopacity]").val(backopacity/100).parent().children("span.current-value").html(backopacity+"%");$("form.VLplayer-cc-form input[name=size]").val(fontsize).parent().children("span.current-value").html(fontsize);$("form.VLplayer-cc-form select[name=font] option[value="+font+"]").attr("selected","selected");$("form.VLplayer-cc-form input[name=forecolor]").change(function(){foreground=$(this).val();var a=hexToRgb(foreground);$("div.cc-preview-text").css({color:"rgba("+
  a.r+", "+a.g+", "+a.b+", "+foreopacity/100+")"})});$("form.VLplayer-cc-form input[name=backcolor]").change(function(a){background=$(this).val();a=hexToRgb(background);$("div.cc-preview-text").css({background:"rgba("+a.r+", "+a.g+", "+a.b+", "+backopacity/100+")"})});$("form.VLplayer-cc-form span.increase-value").click(function(a){a=$(this).parent().children("input").attr("name");var g=parseFloat($("input[name="+a+"]").val());switch(a){case "foreopacity":g=Math.min(1,g+.25);$("input[name="+a+"]").val(g);
  $(this).parent().children("span.current-value").html(100*g+"%");foreopacity=100*g;a=hexToRgb(foreground);$("div.cc-preview-text").css({color:"rgba("+a.r+", "+a.g+", "+a.b+", "+foreopacity/100+")"});break;case "backopacity":g=Math.min(1,g+.25);$("input[name="+a+"]").val(g);$(this).parent().children("span.current-value").html(100*g+"%");backopacity=100*g;a=hexToRgb(background);$("div.cc-preview-text").css({background:"rgba("+a.r+", "+a.g+", "+a.b+", "+backopacity/100+")"});break;case "size":g=Math.min(32,
  g+4),$("input[name="+a+"]").val(g),$(this).parent().children("span.current-value").html(g),$("div.cc-preview-text").css({"font-size":g+"px"})}});$("form.VLplayer-cc-form span.decrease-value").click(function(a){a=$(this).parent().children("input").attr("name");var g=parseFloat($("input[name="+a+"]").val());switch(a){case "foreopacity":g=Math.max(0,g-.25);$("input[name="+a+"]").val(g);$(this).parent().children("span.current-value").html(100*g+"%");foreopacity=100*g;a=hexToRgb(foreground);$("div.cc-preview-text").css({color:"rgba("+
  a.r+", "+a.g+", "+a.b+", "+foreopacity/100+")"});break;case "backopacity":g=Math.max(0,g-.25);$("input[name="+a+"]").val(g);$(this).parent().children("span.current-value").html(100*g+"%");backopacity=100*g;a=hexToRgb(background);$("div.cc-preview-text").css({background:"rgba("+a.r+", "+a.g+", "+a.b+", "+backopacity/100+")"});break;case "size":g=Math.max(8,g-4),$("input[name="+a+"]").val(g),$(this).parent().children("span.current-value").html(g),$("div.cc-preview-text").css({"font-size":g+"px"})}});
  $("form.VLplayer-cc-form select[name=font]").change(function(a){a=$(this).val();$("div.cc-preview-text").css({"font-family":a})});$("form.VLplayer-cc-form button").click(function(a){a=$("form.VLplayer-cc-form").serializeArray().reduce(function(a,c){a[c.name]=c.value;return a},{});a=JSON.stringify(a);$.cookie("cspanvl_cc_options",a,{path:"/",expires:9999});a=jwplayer("video-embed");var g=a.getPosition();a.remove();setupPlayer();initializePlayerAddons();a=jwplayer("video-embed");a.seek(g);a.play(!0);
  $("form.VLplayer-cc-form").toggle()});$("form.VLplayer-cc-form a.VLplayer-option-form-close").click(function(a){a.preventDefault();a=jwplayer("video-embed");$("form.VLplayer-cc-form").toggle();"idle"!=a.getState()&&a.play(!0);setCaptionVariables();$("form.VLplayer-cc-form input[name=forecolor]").removeAttr("checked");$("form.VLplayer-cc-form input[name=forecolor][value="+foreground+"]").attr("checked","checked");$("form.VLplayer-cc-form input[name=backcolor]").removeAttr("checked");$("form.VLplayer-cc-form input[name=backcolor][value="+
  background+"]").attr("checked","checked");$("form.VLplayer-cc-form input[name=foreopacity]").val(foreopacity/100).parent().children("span.current-value").html(foreopacity+"%");$("form.VLplayer-cc-form input[name=backopacity]").val(backopacity/100).parent().children("span.current-value").html(backopacity+"%");$("form.VLplayer-cc-form input[name=size]").val(fontsize).parent().children("span.current-value").html(fontsize);$("form.VLplayer-cc-form select[name=font] option[value="+font+"]").attr("selected",
  "selected");a=hexToRgb(foreground);var g=hexToRgb(background);$("div.cc-preview-text").css({color:"rgba("+a.r+", "+a.g+", "+a.b+", "+foreopacity/100+")",background:"rgba("+g.r+", "+g.g+", "+g.b+", "+backopacity/100+")","font-family":font,"font-size":fontsize+"px"})})}
  function setCaptionVariables(){if(void 0!==$.cookie("cspanvl_cc_options")){var a=JSON.parse($.cookie("cspanvl_cc_options"));foreground=void 0!=a.forecolor?a.forecolor:"#FFF";background=void 0!=a.backcolor?a.backcolor:"#000";foreopacity=void 0==a.foreopacity||isNaN(a.foreopacity)?100:100*parseInt(a.foreopacity);backopacity=void 0==a.backopacity||isNaN(a.backopacity)?100:100*parseInt(a.backopacity);font=void 0!=a.font?a.font:"inherit";fontsize=void 0!=a.size?parseInt(a.size):20}else foreground="#FFF",
  background="#000",backopacity=foreopacity=100,font="inherit",fontsize=20}
  function shareOptions(){var a=getParentUrl(),g=jwsetup.twlink,f=jwsetup.fblink;sharelink=jwsetup.sharelink;var c=jwsetup.savelink,b=$.browser.mobile||"undefined"!=typeof jwsetup.noClip&&jwsetup.noClip,e=jwsetup.clipprog,d=1==jwsetup.embeddable?0:1,a="<div class='VLplayer-sharing-options'>\n<ul class='share'><li class='title'><span>Share This Video</span></li>"+(g?"<li><a data-shareoption='external' target='_blank' href='"+g+"' aria-label='Share via Twitter' tabindex='12'><i class='icon-twitter'></i></a></li>":
  "")+(f?"<li><a data-shareoption='external' target='_blank' href='"+f+"' aria-label='Share via Facebook' tabindex='13'><i class='icon-facebook'></i></a></li>":"")+(sharelink?"<li><a data-shareoption='link' href='#' aria-label='Link to Video' tabindex='14'><i class='icon-share'></i></a></li>":"")+"</ul><ul class='save'>"+(!b&&e?"<li><a class='clip-button"+(null==a?" noclip":"")+"' data-shareoption='clip' href='#' aria-label='Clip' tabindex='9'><i class='icon-scissors'></i><span>Clip</span></a><div class='clip-tooltip'>Begin playback before making clips</div></li>":
  "")+(c?"<li><a data-shareoption='bookmark' target='_blank' href='"+c+"' aria-label='Bookmark To MyC-SPAN' tabindex='10'><i class='icon-bookmark-2'></i><span>Bookmark To MyC-SPAN</span></a></li>":"")+(d?"":"<li><a data-shareoption='embed' href='#' aria-label='Embed Video' tabindex='11'><i class='icon-code'></i><span>Embed</span></a></li>")+"</ul></div>\n";$("div#video-embed").parent().append(a);!b&&e&&(clipTool(),$("a.clip-button").parent().hover(function(a){$(this).children("a.clip-button").hasClass("noclip")&&
  $("div.clip-tooltip").show()},function(a){$("div.clip-tooltip").hide()}));d||$(".VLplayer-sharing-options a[data-shareoption=embed]").click(function(a){a.preventDefault();$("div.embed-dialog").length?$("div.embed-dialog a.close").click():(a=sharelink.replace("/video","/video/standalone"),$("div#video-embed").append("<div class='embed-dialog'></div>"),a="<h2>Embed Video</h2><a href='#' class='close'><i class='icon-cancel-circle'></i></a><p>Copy the embed code below and paste it into your website or blog.</p><label for='embed-code'>Embed Code</label><textarea><iframe width=512 height=330 src='"+
  a+"' allowfullscreen='allowfullscreen' frameborder=0></iframe>",$("div.embed-dialog").append(a),$("div.embed-dialog").css("left",$("div#video-embed").width()/2-$("div.embed-dialog").width()/2),$("div.embed-dialog a.close").click(function(a){a.preventDefault();$("div.embed-dialog").remove()}))});sharelink&&$(".VLplayer-sharing-options a[data-shareoption=link]").click(function(a){a.preventDefault();$("div.share-dialog").length?$("div.share-dialog a.close").click():($("div#video-embed").append("<div class='share-dialog'></div>"),
  a="<h2>Share Video</h2><a href='#' class='close'><i class='icon-cancel-circle'></i></a><p>Copy the Video URL below.</p><input value='"+sharelink+"'>",$("div.share-dialog").append(a),$("div.share-dialog").css("left",$("div#video-embed").width()/2-$("div.share-dialog").width()/2),$("div.share-dialog a.close").click(function(a){a.preventDefault();$("div.share-dialog").remove()}))})}
  function clipTool(){$("a.clip-button").click(function(a){a.preventDefault();null!=getParentUrl()&&sharelink?window.open(sharelink+"&cliptool","_blank"):$("div.clip-info").length?$("div.clip-info div.step-one a.cancel").click():(a=jwplayer("video-embed"),"playing"==a.getState()&&a.pause(!0),a.resize(clipToolPlayerWidth+"%","auto"),$("div#video-embed").parent().toggleClass("clip-tool"),clipping=!0,clipControls())})}
  function clipControls(){var a=jwplayer("video-embed");a.getState();secondsToTime(a.getPosition());var g=a.getDuration();$("section.video div.video-option-links").length&&$("section.video div.video-option-links").hide();var f=0;"undefined"!=typeof jwsetup.startOffset&&(f+=Math.ceil(jwsetup.startOffset));f=secondsToTime(f);f=0!=f?(0!=f.h?9>=f.h?"0"+f.h+":":f.h+":":"")+(9>=f.m?"0"+f.m+":":f.m+":")+(9>=f.s?"0"+f.s:f.s):"00:00";"undefined"!=typeof jwsetup.endoffset&&(g-=Math.floor(jwsetup.endoffset));
  var c;c=secondsToTime(g);c=0!=c?(0!=c.h?9>=c.h?"0"+c.h+":":c.h+":":"")+(9>=c.m?"0"+c.m+":":c.m+":")+(9>=c.s?"0"+c.s:c.s):"00:00";"undefined"!=typeof jwsetup.startOffset&&(g-=Math.ceil(jwsetup.startOffset));g=secondsToTime(g);g=0!=g?(0!=g.h?9>=g.h?"0"+g.h+":":g.h+":":"")+(9>=g.m?"0"+g.m+":":g.m+":")+(9>=g.s?"0"+g.s:g.s):"00:00";"undefined"!=typeof jwsetup.clipstart&&"undefined"!=typeof jwsetup.clipend&&(f=jwsetup.clipstart,f=secondsToTime(f),f=0!=f?(0!=f.h?9>=f.h?"0"+f.h+":":f.h+":":"")+(9>=f.m?"0"+
  f.m+":":f.m+":")+(9>=f.s?"0"+f.s:f.s):"00:00",c=jwsetup.clipend,c=secondsToTime(c),c=0!=c?(0!=c.h?9>=c.h?"0"+c.h+":":c.h+":":"")+(9>=c.m?"0"+c.m+":":c.m+":")+(9>=c.s?"0"+c.s:c.s):"00:00",g=jwsetup.clipend-jwsetup.clipstart,g=secondsToTime(g),g=0!=g?(0!=g.h?9>=g.h?"0"+g.h+":":g.h+":":"")+(9>=g.m?"0"+g.m+":":g.m+":")+(9>=g.s?"0"+g.s:g.s):"00:00");$("<div class='jw-clip-knob left'><div class='jw-clip-knob-icon'></div></div>").insertAfter(".jw-controlbar .jw-slider-time .jw-knob");$("<div class='jw-clip-knob right'><div class='jw-clip-knob-icon'></div></div>").insertAfter(".jw-controlbar .jw-slider-time .jw-knob");
  $("<div class='jw-clip-span'></div>").insertAfter(".jw-controlbar .jw-slider-time .jw-knob");$("<div class='jw-clip-selection'></div>").insertAfter(".jw-controlbar .jw-slider-time .jw-knob");g="<div class='clip-info' style='width: "+(100-clipToolPlayerWidth-3)+"%'>\n<a href='#' class='clip-instructions'>Instructions</a>\n<form id='clip-data'>\n<div class='step-one'>\n<div class='start'>Start Time<input type='text' class='pos-input' name='start' value='"+f+"'><a href='#' class='current start'>Set at current time</a></div>\n<div class='end'>End Time<input type='text' class='pos-input' name='end' value='"+
  c+"'><a href='#' class='current end'>Set at current time</a></div>\n<div class='duration'>Duration<div id='current-duration'>"+g+"</div><a href='#' class='preview'>Preview Clip</a>\n<a href='#' class='preview-end'>Preview End</a>\n<a href='#' class='describe'>Next</a><a href='#' class='cancel'>Cancel</a></div>\n</div>\n<div class='step-two'>\n<div class='title'>Title<input type='text' name='title'"+("undefined"!==typeof jwsetup.editclipid?" value='"+jwsetup.cliptitle+"'":"")+"></div>\n<div class='description'>Description<textarea name='description'>"+
  ("undefined"!==typeof jwsetup.editclipid?jwsetup.clipdesc:"")+"</textarea></div>\n<div class='controls'><a href='#' class='save'>Save "+("undefined"!==typeof jwsetup.editclipid?"Edit":"Clip")+"</a><a href='#' class='back'>Edit Times</a><a href='#' class='cancel'>Cancel</a></div>\n</div>\n</form>\n<div class='cable-message'><i class='icon-cspan'></i>Created by Cable</div>\n</div>\n";$("div#video-embed").parent().append(g);$("div.clip-info").css("height",$("div#video-embed").height()+$("div.clip-controls").height()-
  10+"px");$("div.clip-info").css("margin-top","10px");$("div.VLplayer-sharing-options").detach().insertAfter("div.clip-info");var b;$("div.jw-clip-knob").draggable({axis:"x",create:function(a,b){},start:function(c,d){b=a.getPosition();$("div.jw-icon.jw-icon-tooltip.jw-tooltip-time").addClass("zoom");$("div.jw-slider-time div.jw-slider-container div.jw-knob").hide()},drag:function(b,c){$("div.jw-icon.jw-icon-tooltip.jw-tooltip-time").addClass("zoom");var f=c.position.left,g=0;"undefined"!==typeof jwsetup.clipstart&&
  (g=0<=jwsetup.clipstart-editLimit?(jwsetup.clipstart-editLimit)/a.getDuration()*$(this).parent().width():0);"undefined"!==typeof jwsetup.startOffset&&0==g&&(g=Math.ceil(jwsetup.startOffset)/a.getDuration()*$(this).parent().width());var m=$(this).parent().width();"undefined"!==typeof jwsetup.clipend&&(m=jwsetup.clipend+editLimit<=a.getDuration()?(jwsetup.clipend+editLimit)/a.getDuration()*$(this).parent().width():$(this).parent().width());"undefined"!==typeof jwsetup.endoffset&&m==$(this).parent().width()&&
  (m=$(this).parent().width()-Math.floor(jwsetup.endoffset)/a.getDuration()*$(this).parent().width());f<g&&(c.position.left=g);f>m&&(c.position.left=m);f=$(this).hasClass("left")?"left":"right";g=10/a.getDuration()*$(this).parent().width();"left"==f?(m=$("div.jw-clip-knob.right").position().left-c.position.left,m<g&&(c.position.left=$("div.jw-clip-knob.right").position().left-g)):(m=c.position.left-$("div.jw-clip-knob.left").position().left,m<g&&(c.position.left=$("div.jw-clip-knob.left").position().left+
  g));m=$(this).parent().width();g=c.position.left/m;g=Math.min(1,g);g=Math.max(0,g);g*=a.getDuration();switch(f){case "left":g=Math.floor(g);break;case "right":g=Math.ceil(g)}g=secondsToTime(g);$("div.clip-info div."+("left"==f?"start":"end")+" input").val((0!=g.h?9>=g.h?"0"+g.h+":":g.h+":":"")+(9>=g.m?"0"+g.m+":":g.m+":")+(9>=g.s?"0"+g.s:g.s));f=$("div.jw-clip-knob.left").position().left;g=$("div.jw-clip-knob.right").position().left-$("div.jw-clip-knob.left").position().left;$("div.jw-clip-span").css("left",
  f).css("width",g+"px");updateDuration()},stop:function(c,d){$("div.jw-icon.jw-icon-tooltip.jw-tooltip-time").removeClass("zoom");a.pause();setTimeout(function(){a.seek(b);$("div.jw-slider-time div.jw-slider-container div.jw-knob").show()},1E3)}});$("div.clip-info a.current").click(function(b){b.preventDefault();b=a.getPosition();b=$(this).hasClass("start")?Math.floor(b):Math.ceil(b);var c,f=0;"undefined"!==typeof jwsetup.clipstart&&(f=0<=jwsetup.clipstart-editLimit?jwsetup.clipstart-editLimit:0);
  "undefined"!==typeof jwsetup.startOffset&&0==f&&(f=Math.ceil(jwsetup.startOffset));var g=a.getDuration();"undefined"!==typeof jwsetup.clipend&&(g=jwsetup.clipend+editLimit<=a.getDuration()?jwsetup.clipend+editLimit:a.getDuration());"undefined"!==typeof jwsetup.endoffset&&g==a.getDuration()&&(g-=Math.floor(jwsetup.endoffset));if($(this).hasClass("start")){c=$("div.clip-info div.end input").val();for(c=c.split(":");3>c.length;)c.unshift("00");c=3600*+c[0]+60*+c[1]+ +c[2];var m=c-b;0<m&&10<=m?(b=Math.max(b,
  f),m=b/a.getDuration()*$("div.jw-clip-knob").parent().width(),$("div.jw-clip-knob.left").css("left",m),c=secondsToTime(b)):(c=Math.max(c-10,f),m=c/a.getDuration()*$("div.jw-clip-knob").parent().width(),$("div.jw-clip-knob.left").css("left",m),c=secondsToTime(c));$("div.clip-info div.start input").val((0!=c.h?9>=c.h?"0"+c.h+":":c.h+":":"")+(9>=c.m?"0"+c.m+":":c.m+":")+(9>=c.s?"0"+c.s:c.s))}else{c=$("div.clip-info div.start input").val();for(c=c.split(":");3>c.length;)c.unshift("00");c=3600*+c[0]+60*
  +c[1]+ +c[2];m=b-c;0<m&&10<=m?(b=Math.min(b,g),m=b/a.getDuration()*$("div.jw-clip-knob").parent().width(),$("div.jw-clip-knob.right").css("left",m),c=secondsToTime(b)):(c=Math.min(c+10,g),m=c/a.getDuration()*$("div.jw-clip-knob").parent().width(),$("div.jw-clip-knob.right").css("left",m),c=secondsToTime(c));$("div.clip-info div.end input").val((0!=c.h?9>=c.h?"0"+c.h+":":c.h+":":"")+(9>=c.m?"0"+c.m+":":c.m+":")+(9>=c.s?"0"+c.s:c.s))}b=$("div.jw-clip-knob.left").position().left;m=$("div.jw-clip-knob.right").position().left-
  $("div.jw-clip-knob.left").position().left;$("div.jw-clip-span").css("left",b).css("width",m+"px");updateDuration()});$("div.clip-info a.preview").click(function(b){b.preventDefault();b=$("div.clip-info div.start input").val();for(b=b.split(":");3>b.length;)b.unshift("00");b=3600*+b[0]+60*+b[1]+ +b[2];b+=.5;a.off("time",previewHandler);a.seek(b);previewing=!0;$("div.clip-controls a.play-pause").addClass("playing");a.on("time",previewHandler)});$("div.clip-info a.preview-end").click(function(b){b.preventDefault();
  b=$("div.clip-info div.end input").val();for(b=b.split(":");3>b.length;)b.unshift("00");b=3600*+b[0]+60*+b[1]+ +b[2]-.5-10;a.off("time",previewHandler);a.seek(b);previewing=!0;$("div.clip-controls a.play-pause").addClass("playing");a.on("time",previewHandler)});$("div.clip-info input.pos-input").change(function(b){b=$(this).attr("name");for(var c=$(this).val(),c=c.split(":");3>c.length;)c.unshift("00");var c=3600*+c[0]+60*+c[1]+ +c[2],f=0;"undefined"!==typeof jwsetup.clipstart&&(f=0<=jwsetup.clipstart-
  editLimit?jwsetup.clipstart-editLimit:0);"undefined"!==typeof jwsetup.startOffset&&0==f&&(f=Math.ceil(jwsetup.startOffset));var g=a.getDuration();"undefined"!==typeof jwsetup.clipend&&(g=jwsetup.clipend+editLimit<=a.getDuration()?jwsetup.clipend+editLimit:a.getDuration());"undefined"!==typeof jwsetup.endoffset&&g==a.getDuration()&&(g-=Math.floor(jwsetup.endoffset));if(c<=g&&c>=f)switch(b){case "start":f=$("div.clip-info div.end input").val();for(f=f.split(":");3>f.length;)f.unshift("00");f=3600*+f[0]+
  60*+f[1]+ +f[2];f-10<c&&(c=f-10);break;case "end":f=$("div.clip-info div.start input").val();for(f=f.split(":");3>f.length;)f.unshift("00");f=3600*+f[0]+60*+f[1]+ +f[2];f+10>c&&(c=f+10)}else c<f?c=f:c>g&&(c=g);f=secondsToTime(c);$("div.clip-info div."+b+" input").val((0!=f.h?9>=f.h?"0"+f.h+":":f.h+":":"")+(9>=f.m?"0"+f.m+":":f.m+":")+(9>=f.s?"0"+f.s:f.s));$("div.jw-clip-knob."+("start"==b?"left":"right")).css("left",c/a.getDuration()*$("div.jw-clip-knob").parent().width());b=$("div.jw-clip-knob.left").position().left;
  c=$("div.jw-clip-knob.right").position().left-$("div.jw-clip-knob.left").position().left;$("div.jw-clip-span").css("left",b).css("width",c+"px");updateDuration()});$("div.clip-info a.describe, div.clip-info a.back").click(function(a){a.preventDefault();$("div.clip-info div.step-one").toggle();$("div.clip-info div.step-two").toggle()});"undefined"!==typeof jwsetup.editclipid&&$("div.clip-info a.describe").click();$("div.clip-info a.save").click(function(b){b.preventDefault();b=jwsetup.clipprog;var c=
  jwsetup.dynamic,f=$("form#clip-data").form(),g=!1;""==f.description&&(f.description=f.title);for(var m=f.start,m=m.split(":");3>m.length;)m.unshift("00");f.start=3600*+m[0]+60*+m[1]+ +m[2];m=f.end;for(m=m.split(":");3>m.length;)m.unshift("00");f.end=3600*+m[0]+60*+m[1]+ +m[2];var l=m=0;if("undefined"!=typeof jwsetup.m3u8times&&!jwsetup.prodtape){for(var p=jwsetup.m3u8times.times,n=0,q=0;q<p.length;q++){n<=f.start&&n+p[q].length>f.start&&(m=Math.floor(p[q].timestamp+(f.start-n)));n<=f.end&&n+p[q].length>
  f.end&&(l=Math.ceil(p[q].timestamp+(f.end-n)));if(0!=m&&0!=l)break;n+=p[q].length}if(0==m||0==l)g=!0,alert("Something has gone wrong, please send a screenshot of your 'Start Time' and 'End Time' to jtamlin@c-spanvideo.org")}p="undefined"!=typeof jwsetup.clipid?jwsetup.clipid:0;g||(a.pause(!0),"undefined"!==typeof jwsetup.editclipid?$.ajax({url:c+"/controllers/createClip/index.php",method:"GET",async:!1,data:{ajax:!0,clipid:jwsetup.editclipid,start:f.start,stop:f.end,title:f.title,description:f.description,
  jwplayer:"",clippingUbeg:m,clippingUend:l,m3u8ProdTape:jwsetup.prodtape}}).done(function(a){a=a.split("|");if(isNaN(a[0]))0<a.len?alert(toTitleCase(a)):alert("Error creating clip");else{var b=Math.round((new Date).getTime()/1E3);location.href=a[1]+"&editTime="+b}}):$.ajax({url:c+"/controllers/createClip/index.php",method:"GET",async:!1,data:{ajax:!0,programid:b,start:f.start,stop:f.end,title:f.title,clippingUbeg:m,clippingUend:l,fromClipid:p,description:f.description,jwplayer:"",m3u8ProdTape:jwsetup.prodtape}}).done(function(a){a=
  a.split("|");isNaN(a[0])?0<a.len?alert(toTitleCase(a)):alert("Error creating clip"):(window.open(a[1],"_blank"),destroyClipControls())}))});$("div.clip-info a.cancel").click(function(a){a.preventDefault();clipping=!1;destroyClipControls();"undefined"!==typeof jwsetup.editclipid&&location.reload()});$("div.clip-info a.clip-instructions").click(function(a){a.preventDefault();$("section.video.clip-tool").append("<div class='instructions'></div>");$("section.video.clip-tool div.instructions").html('<h2>Clipping Instructions</h2><a href=\'#\' class=\'close\'><i class=\'icon-cancel-circle\'></i></a><p>There are three ways to set in and out points for a clip:</p><ul><li>Slide the yellow markers on the progress bar to your desired points</li><li>Enter the times in tthe two text boxes on the right</li><li>Find your point and click "Set at Current Time" under the boxes on the right</li></ul><p>Check your selection with the "Preview Clip" option</p><p>If satisfied click "Next" and</p><ul><li>Enter the title and description of the clip</li><li>Click "Save Clip"</li></ul>');
  $("section.video.clip-tool div.instructions a.close").click(function(a){a.preventDefault();$("section.video.clip-tool div.instructions").remove()})});3600<a.getDuration()&&clipFineTune();"undefined"!=typeof jwsetup.clipstart&&"undefined"!=typeof jwsetup.clipend&&($("div.clip-info div.start input").trigger("change"),$("div.clip-info div.end input").trigger("change"))}
  function hexToRgb(a){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,f,c,b){return f+f+c+c+b+b});return(a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a))?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:null}function secondsToTime(a){a=Math.round(a);var g=Math.floor(a/3600),f=a%3600;a=Math.floor(f/60);f=Math.ceil(f%60);return g={h:g,m:a,s:f}}
  function clipFineTune(){var a=!1,g="",f,c=jwplayer("video-embed"),b=0,e=0;$("<div class='zoom-bar'></div>").insertAfter("div#video-embed");$("div.zoom-bar").html("<div class='zoom-rail'></div>");$("div.zoom-bar div.zoom-rail").html("<div class='jw-zoom-knob left'><div class='jw-clip-knob-icon'></div></div>");$("<div class='zoom-start'>00:00</div><div class='zoom-end'>00:00</div>").insertAfter("div.zoom-bar div.zoom-rail");$("div.jw-clip-knob").mouseover(function(a){clearTimeout(f);$("div.jw-icon.jw-icon-tooltip.jw-tooltip-time").addClass("zoom");
  a=$(this).offset().left-$("section.video.clip-tool").offset().left-$("div.zoom-bar").width()/2;$("div.zoom-bar").show();$("div.zoom-bar").css("left",a);g=$(this).hasClass("left")?"left":"right";"left"==g?($("div.jw-zoom-knob").removeClass("right"),$("div.jw-zoom-knob").addClass("left")):($("div.jw-zoom-knob").removeClass("left"),$("div.jw-zoom-knob").addClass("right"));var h=0;"undefined"!==typeof jwsetup.clipstart&&(h=0<=jwsetup.clipstart-editLimit?jwsetup.clipstart-editLimit:0);"undefined"!==typeof jwsetup.startOffset&&
  0==h&&(h=Math.ceil(jwsetup.startOffset)/c.getDuration()*$(this).parent().width());a=c.getDuration();"undefined"!==typeof jwsetup.clipend&&(a=jwsetup.clipend+editLimit<=c.getDuration()?jwsetup.clipend+editLimit:c.getDuration());"undefined"!==typeof jwsetup.endoffset&&a==$(this).parent().width()&&(a=$(this).parent().width()-Math.floor(jwsetup.endoffset)/c.getDuration()*$(this).parent().width());e="left"==g?$("div.clip-info div.start input").val():$("div.clip-info div.end input").val();for(e=e.split(":");3>
  e.length;)e.unshift("00");e=3600*+e[0]+60*+e[1]+ +e[2];b=Math.round(c.getDuration()*(1/60));h=secondsToTime(Math.max(e-b,h));a=secondsToTime(Math.min(e+b,a));$("div.zoom-bar div.zoom-start").html((0!=h.h?9>=h.h?"0"+h.h+":":h.h+":":"")+(9>=h.m?"0"+h.m+":":h.m+":")+(9>=h.s?"0"+h.s:h.s));$("div.zoom-bar div.zoom-end").html((0!=a.h?9>=a.h?"0"+a.h+":":a.h+":":"")+(9>=a.m?"0"+a.m+":":a.m+":")+(9>=a.s?"0"+a.s:a.s))}).mouseout(function(b){f=setTimeout(function(){a||($("div.jw-icon.jw-icon-tooltip.jw-tooltip-time").removeClass("zoom"),
  $("div.zoom-bar").hide())},800)});$("div.zoom-bar, div.zoom-rail, div.jw-zoom-knob").mouseover(function(b){clearTimeout(f);a=!0}).mouseout(function(b){a=!1;f=setTimeout(function(){a||($("div.jw-icon.jw-icon-tooltip.jw-tooltip-time").removeClass("zoom"),$("div.zoom-bar").hide())},800)});$("div.jw-zoom-knob").draggable({axis:"x",start:function(a,b){},drag:function(a,f){var g=f.position.left;0>g&&(f.position.left=0);g>$(this).parent().width()&&(f.position.left=$(this).parent().width());g=f.position.left-
  $(this).parent().width()/2;0<=g?(g/=$(this).parent().width()/2,g*=b,g=e+g):(g/=$(this).parent().width()/-2,g*=b,g=e-g);$(this).hasClass("left")?(g=Math.floor(g),g=secondsToTime(Math.max(g,0)),$("div.clip-info div.start input").val((0!=g.h?9>=g.h?"0"+g.h+":":g.h+":":"")+(9>=g.m?"0"+g.m+":":g.m+":")+(9>=g.s?"0"+g.s:g.s)),$("div.clip-info div.start input").trigger("change")):(g=Math.ceil(g),g=secondsToTime(Math.min(g,c.getDuration())),$("div.clip-info div.end input").val((0!=g.h?9>=g.h?"0"+g.h+":":g.h+
  ":":"")+(9>=g.m?"0"+g.m+":":g.m+":")+(9>=g.s?"0"+g.s:g.s)),$("div.clip-info div.end input").trigger("change"));updateDuration()},stop:function(a,b){$(this).css("left","50%");$("div.jw-icon.jw-icon-tooltip.jw-tooltip-time").removeClass("zoom");$("div.zoom-bar").hide()}})}
  function updateDuration(){for(var a=$("div.clip-info div.start input").val(),a=a.split(":");3>a.length;)a.unshift("00");for(var a=3600*+a[0]+60*+a[1]+ +a[2],g=$("div.clip-info div.end input").val(),g=g.split(":");3>g.length;)g.unshift("00");g=3600*+g[0]+60*+g[1]+ +g[2];clipDuration=g-a;clipDuration=secondsToTime(clipDuration);$("div.clip-info div#current-duration").html((0!=clipDuration.h?9>=clipDuration.h?"0"+clipDuration.h+":":clipDuration.h+":":"")+(9>=clipDuration.m?"0"+clipDuration.m+":":clipDuration.m+
  ":")+(9>=clipDuration.s?"0"+clipDuration.s:clipDuration.s))}
  function destroyClipControls(){var a=jwplayer("video-embed");$("div.clip-info").remove();$("div.jw-clip-knob").remove();$("div.zoom-bar").remove();$("div.jw-clip-span").remove();a.resize("100%","auto");a.off("displayClick");$("div#video-embed").parent().toggleClass("clip-tool");$("section.video div.video-option-links").length&&$("section.video div.video-option-links").show();$("section.video div.instructions").length&&$("section.video div.instructions").remove()}
  function destroyPlayer(){jwplayer("video-embed").remove();$("form.VLplayer-cc-form").remove();$("div.VLplayer-sharing-options").remove()}$.fn.form=function(){var a={};this.find("[name]").each(function(){a[this.name]=this.value});return a};window.hasMediaSource=function(){if(null!=window.MediaSource||null!=window.webkitMediaSource)return!0;var a=document.createElement("video");return null==a.webkitSourceAddId&&null==a.sourceAddId?!1:!0};
  function getParentUrl(){var a=null;parent!==window&&(a=document.referrer);return a}function checkCookiesEnabled(){$.cookie("cspanvl_testcookie","true",{path:"/"});return void 0!==$.cookie("cspanvl_testcookie")?!0:!1}function toTitleCase(a){return a.replace(/\w\S*/g,function(a){return a.charAt(0).toUpperCase()+a.substr(1).toLowerCase()})}
  function previewHandler(a){for(var g=$("div.clip-info div.end input").val(),g=g.split(":");3>g.length;)g.unshift("00");var g=3600*+g[0]+60*+g[1]+ +g[2],g=g-.5,f=jwplayer("video-embed");a.position>=g&&previewing&&(f.pause(!0),previewing=!1,$("div.clip-controls a.play-pause").removeClass("playing"))}
  (function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,
  4))})(navigator.userAgent||navigator.vendor||window.opera);function purchaseVideoForms(){$("#purchase .purchase-options a.buy").on("click",function(a){a.stopPropagation();a.preventDefault();$(this).hasClass("buy-purchase")?void 0!=$(this).data("nid")?($(this).hide(),$(this).closest("li").find("img.ajax-loading").show(),a=parseInt($(this).data("nid"),10),0>=a&&(a=!1),a?($("#video-purchase-form input[name='buyid']").val(a),$("#video-purchase-form").submit()):$(this).closest("li").find("form.download-purchase-form").submit()):$(this).closest("li").find("span.error").show():
  ($(this).hasClass("user-download-request")?$(this).closest("li").find("form.user-download-request-form").slideToggle("fast"):$(this).closest("li").find("form.download-request-form").slideToggle("fast"),$(this).find("i").toggleClass("icon-chevron-down").toggleClass("icon-chevron-up"))});$("#purchase .purchase-options a.free-download-help").on("click",function(a){a.stopPropagation();a.preventDefault();0<$(this).closest("li").find("a.user-download-request").length?$(this).closest("li").find("a.user-download-request").click():
  0==$(this).closest("li").find(".free-download-details").length&&($(this).hasClass("free-download-studentcam-help")?$(this).closest("li").find(".purchase-buttons").after("<p class='free-download-details hidden'>MyC-SPAN users registered as StudentCam participants can download limited MOV and AVI video files for free.</p>"):$(this).closest("li").find(".purchase-buttons").after("<p class='free-download-details hidden'>MyC-SPAN users can download congressional and governmental videos for free (applies only to low bit rate videos).</p>"),
  $(this).closest("li").find(".free-download-details").slideToggle("fast"))});$("#purchase form.download-request-form").on("submit",function(){if($(this).hasClass("submitting"))return!1;$(this).addClass("submitting");var a=$(this).attr("action"),g=$(this).serialize(),f=$(this);$(f).find(".ajax-loading").show();$(f).find(".success").hide();$(f).find(".error").hide();$.ajax({type:"POST",url:a,data:g,cache:!1,success:function(a){$(f).find(".ajax-loading").hide();"true"==a?$(f).find(".success").show():
  $(f).find(".error").show()}});return!1});$("#purchase form.download-purchase-form").on("submit",function(){var a=$(this).attr("action"),g=$(this).serialize(),f=$(this);$.ajax({type:"POST",url:a,data:g,cache:!1,success:function(a){(a=a.match(/^\d+$/))?($("#video-purchase-form input[name='buyid']").val(a),$("#video-purchase-form").submit()):($(f).siblings("img.ajax-loading").hide(),$(f).siblings("div.error").show())},error:function(){$(f).siblings("img.ajax-loading").hide();$(f).siblings("div.error").show()}});
  return!1})};function reportVideo(){if($("div#flagVideo").length){var a=$("#flagVideo");$.ajax({type:"GET",url:$(a).attr("rel"),success:function(g){$(a).html(g);0==g.length&&$(a).html("<br/>");$(a).fadeIn("slow");g=$("#options div div ul li:first-child a").attr("rel");$("#options div .smallBack").val(g);$("#flagVideo #text .videoFlag").unbind("click").click(function(){if("Request"==$(this).attr("href"))return $.ajax({type:"GET",url:$(a).attr("rel"),data:{flag:"Request"},success:function(f){$(a).html(f);$(a).fadeIn("slow")}}),
  !1;$(this).parent().hide();$(this).parent().parent().children("#options").show();return!1});$("#options .select").unbind("click").click(function(){$(this).children("div").slideToggle()});$("#flagVideo .select ul li a").unbind("click").click(function(){var a=$("#options .select span");$(a).text($(this).text());$(this).parent().parent().parent().slideUp();return!1});$("#flagVideo input[type=submit]").unbind("click").click(function(){var f=$("#options .select");if("Other"==$(f).find(":selected").text()&&
  ""==$("#otherText").val())return $("#options").hide(),$("#explain").show(),!1;$.ajax({type:"GET",url:$(a).attr("rel"),data:{flag:$(f).find(":selected").text(),comment:$("#otherText").val()},success:function(c){$(a).html(c);$(a).fadeIn("slow");return!1}})})}})}};var channels,streaming_container,tags,sort_results,search_bar,filters,content_filters,see_all_posts;
  $(document).ready(function(){channels=$("ul.channels");streaming_container=$("#content .container");tags=$("#deactivate-terms");sort_results=$("#sort-results");var a=$("#content-search-type").val(),g="";$('input[id*="search-keyword-"]').each(function(){g+=decodeURIComponent($(this).val())+" "});search_bar='<form id="mobile_search" action="'+window.location.origin+'/search"><fieldset><select class="dropdown" name="searchtype"><option'+("All"==a?" selected":"")+">All</option><option"+("Videos"==a?" selected":
  "")+">Videos</option><option"+("Clips"==a?" selected":"")+">Clips</option><option"+("People"==a?" selected":"")+">People</option><option"+("Mentions"==a?" selected":"")+">Mentions</option><option"+("Bills"==a?" selected":"")+'>Bills</option></select><input type="search" placeholder="Search the Video Library" name="query" id="global-search" value="'+g+'"><button type="submit"><i class="icon-search"></i></button></fieldset></form>';filters=$("#filter-tags, #filter-people, #filter-hosting-org, #filter-series, #filter-location, #filter-event-type");
  content_filters=$("#content-type > button");see_all_posts=$("#blog-see-all")});
  function responsiveChannels(){jRespond([{label:"handheld",enter:0,exit:768}]).addFunc({breakpoint:"handheld",enter:function(){$("body").addClass("mobileView");$("body").hasClass("streaming")&&!$("body").hasClass("radio")&&createChannelDropDown(!1);$("body").hasClass("schedule")&&createChannelDropDown(!0);$("body").hasClass("search-results")&&mobileSearchResults();$("header")&&addMobileHeader();$("body").hasClass("blog article");mobileBlogArticlePage()},exit:function(){$("body").removeClass("mobileView");
  $("body").hasClass("schedule")&&destroyChannelDropDown();$("body").hasClass("streaming")&&!$("body").hasClass("radio")&&destroyChannelDropDown();$("body").hasClass("search-results")&&desktopSearchResults();$("header")&&removeMobileHeader();$("body").hasClass("blog article");desktopBlogArticlePage()}})}
  function addMobileHeader(){$("#main-nav-dropdown").append('<li class="handheld-duplicate"><a href="/networks/" class="live-tv"><i class="icon-tv"></i>TV Nets</a></li><li class="handheld-duplicate"><a href="/networks/?channel=radio" class="radio"><i class="icon-headphones"></i>Radio</a></li><li class="handheld-duplicate"><a href="/schedule/" class="schedule"><i class="icon-calendar"></i>Schedule</a></li><li class="handheld-duplicate my-cspan"><a href="/my-cspan-login.php" class="my-cspan ajax">MyC-SPAN LOGIN</a></li>');$("#mob_nav_hb").after('<a id="mob_search_btn" class="handheld-duplicate"><i class="icon-search"></i></a>');
  $(".series").removeClass("expanded");$("#mob_search_btn").on("click",function(a){a.preventDefault();"none"!=$("#main-nav-dropdown").css("display")&&$("#main-nav-dropdown").slideToggle("fast",function(){$("nav.main").toggleClass("expanded")});$("form.search").slideToggle("fast")});$("#main-nav-dropdown").css("display","none");$("form.search div.dropdown div").css("height","130px");$("nav.main").removeClass("expanded");$("form.search").css("display","none")}
  function removeMobileHeader(){$(".handheld-duplicate").remove();$(".series").removeClass("expanded");$("#main-nav-dropdown").css("display","block");$("form.search").css("display","block");$("#mob_search_btn").unbind()}
  function desktopSearchResults(){tags.detach();sort_results.detach();$(".search-results h1").append(sort_results).prepend(tags);$(".search-results .secondary").append(filters);$("#mobile_search").detach();shuffleFiltersForDesktop();$(".two-column").length&&$("section.column.left ul li").show()}
  function mobileSearchResults(){tags.detach();sort_results.detach();search_text=$("#text-results");search_text.detach();$(".search-results .secondary").prepend(tags);$("#content").prepend(search_bar);$("form#mobile_search .dropdown").easyDropDown();$(sort_results).insertBefore(".showing");$(search_text).insertAfter(sort_results);shuffleFiltersForMobile();$(".two-column").length&&($("section.column.left ul li:gt(2)").hide(),$("section.column.left ul li:last").show())}
  function createChannelDropDown(a){0<$("#channel-selector").length?$("#channel-selector").show():(a="../fragments/channels-dropdown.php?mode=partial",$("body").hasClass("streaming")&&!$("body").hasClass("radio")&&(a+="&noRadio"),0<$("#adobe-pass-mvpd-info").length?$("#adobe-pass-mvpd-info").after("<div id='channel-selector'></div>"):streaming_container.prepend("<div id='channel-selector'></div>"),$("#channel-selector").load(a,function(){changeDefaultDropdownValue();$("select#channel-selector").easyDropDown({onChange:function(a){window.location.search=
  "channel="+a.value}})}))}function destroyChannelDropDown(){$("#channel-selector").hide()}function changeDefaultDropdownValue(){var a=decodeURI(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURI("channel").replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"));$("select#channel-selector option").each(function(g,f){$(this).val()===a&&$(this).prop("selected","selected")})}
  function shuffleFiltersForMobile(){filters.detach();$("button > .icon-chevron-right").removeClass("icon-chevron-right").addClass("icon-chevron-down").css("float","right");$(".highlight").children(".icon-chevron-down").removeClass("icon-chevron-down").addClass("icon-chevron-up");$(".highlight").after(filters);content_filters.on("click",contentDropdownEvents);$(".secondary h2").on("click",toggleAllFilters)}
  function shuffleFiltersForDesktop(){$("button > .icon-chevron-down, button > .icon-chevron-up").removeClass("icon-chevron-down icon-chevron-up").addClass("icon-chevron-right");content_filters.off("click",contentDropdownEvents);$("#content-type > fieldset").remove();$(".secondary h2").off("click",toggleAllFilters)}
  function contentDropdownEvents(a){a.preventDefault();$("#filter-tags, #filter-people, #filter-hosting-org, #filter-series, #filter-location, #filter-event-type").detach();if($(this).hasClass("highlight")){if($(this).children(".icon-chevron-up").length){$(this).children(".icon-chevron-up").removeClass("icon-chevron-up").addClass("icon-chevron-down");$("#filter-tags, #filter-people, #filter-hosting-org, #filter-series, #filter-location, #filter-event-type").detach();return}}else $(".highlight").removeClass("highlight").children(".icon-chevron-up").removeClass("icon-chevron-up").addClass("icon-chevron-down"),
  $(this).addClass("highlight");$(this).children(".icon-chevron-down").length?($(this).children(".icon-chevron-down").removeClass("icon-chevron-down").addClass("icon-chevron-up"),$(this).after(filters.clone()),$("#filter-tags, #filter-people, #filter-hosting-org, #filter-series, #filter-location, #filter-event-type").find("input[type=checkbox]").prop("checked",!1),$(".expanded").trigger("click")):($(this).children(".icon-chevron-up").removeClass("icon-chevron-up").addClass("icon-chevron-down"),$("#filter-tags, #filter-people, #filter-hosting-org, #filter-series, #filter-location, #filter-event-type").detach())}
  function toggleAllFilters(){$("#filter-search").toggle()}function mobileBlogArticlePage(){see_all_posts.detach();$(".blog-navigation").append(see_all_posts).children("div").toggleClass("blog-navigation-mobile-buttons")}function desktopBlogArticlePage(){see_all_posts.detach();$(".blog-previous-button").after(see_all_posts);$(".blog-navigation").children("div").toggleClass("blog-navigation-mobile-buttons")};function responsiveMoveElement(){$responsiveMoveElementsWindowWidth=$(window).width()};function scrollToPoint(){$("#wrapper").on("click","a.scroll",function(a){a.preventDefault();a=$(this).attr("href");a=$(a).offset().top;!0===$("body").hasClass("mobileView")&&(a-=100);$("html, body").animate({scrollTop:a},500)})};function tagSubnav(){$("nav.tags a.expand-collapse").click(function(a){a.preventDefault();$(this).siblings("ul").slideToggle("slow",function(){$(this).siblings("a.expand-collapse").toggleClass("expanded")})})}
  function tagSubnavAjax(){$("nav.tags a.tag").click(function(a){a.preventDefault();var g=$(this).attr("href");scrollTo=$("#primary").offset().top-100;$("html, body").animate({scrollTop:scrollTo},500);setTimeout(function(){$("#primary").animate({height:200},500,function(){$("#primary").append("<div class='loading'></div>");$(".loading").fadeIn("slow",function(){$("#results-wrapper").empty();$("#results-wrapper").load(g+" #ajaxable-content",function(){var a=$("#ajaxable-content").height();$("#primary").animate({height:a},
  1E3,function(){$(".loading").css("background-image","none").fadeOut("slow",function(){$(".loading").remove()})})})})})},500)})};function toggleHistory(){$("section.profile-history a.toggle").click(function(a){a.preventDefault();$(this).toggleClass("active").siblings("div.details").slideToggle("slow")})};function toggleMemberMap(){$("#map-button").on("click",function(){var a=$(this).find("i");!0===$(a[1]).hasClass("icon-chevron-up")?$(a[1]).removeClass("icon-chevron-up").addClass("icon-chevron-down"):($(a[1]).removeClass("icon-chevron-down").addClass("icon-chevron-up"),$(this).addClass("extended"));$(".map").slideToggle("fast")})};function toggleMemberFilter(){$("#wrapper").on("click",".find > legend",function(){$("body").hasClass("mobileView")&&$(".congressional-chronicle-filter").toggleClass("expanded",function(){$(".congressional-chronicle-filter select").easyDropDown()})})};function toggleMobileLogout(){$("header").on("click","a#my-cspan-main",function(a){$("body").hasClass("mobileView")&&(a.preventDefault(),$("li.my-cspan").toggleClass("logout"))})};function toggleResourceList(){$("#wrapper").on("click","ul.resources li a.expand",function(a){a.preventDefault();$(this).siblings(".details").slideToggle("slow",function(){$(this).siblings("a").children("i").toggleClass("expanded")});$(this).children("i").hasClass("expanded")||(a=!1,-1==navigator.userAgent.indexOf("Android 4.0")&&-1==navigator.userAgent.indexOf("Android 4.1")||-1==navigator.userAgent.indexOf("AppleWebKit")||(a=!0),"undefined"==typeof history.replaceState||a?window.location.hash=$(this).attr("id"):
  history.replaceState({},"","#"+$(this).attr("id")))})};function videoMoreInfo(){$("div.overview p.initial a.more").click(function(a){a.preventDefault();$(this).parent().toggle();$("div.overview div.more_info").toggle()});$("div.more_info p a.more.close").click(function(a){a.preventDefault();$("div.overview p.initial a.more").parent().toggle();$("div.overview div.more_info").toggle()});$("a.show-edit-form").on("click",function(a){a.preventDefault();1==$("input#fullEdit").val()?$.ajax({method:"GET",data:{action:"jwsetup",clipid:$("a.show-edit-form").attr("id")}}).done(function(a){destroyPlayer();
  setTimeout(function(){$("div#video-embed").siblings("script").remove();$("div#video-embed").parent().append(a);initPlayer()},1E3)}):"undefined"===typeof jwsetup&&($(this).hide(),$(this).siblings("form.dynamic-edit-form").show())});$("form.dynamic-edit-form a.cancel").on("click",function(a){a.preventDefault();$(this).closest("form.dynamic-edit-form").hide();$(this).closest("form.dynamic-edit-form").siblings("a.show-edit-form").show()})};function wivToggleEvents(){$("body").on("click","#more-events",function(a){a.preventDefault();$("ul.schedule li.hidden").slideToggle("slow",function(){$("#more-events i").toggleClass("expanded")})})};$(document).ready(function(){accordionNavActions();addAiringNotifyAlert();ajaxFormSubmit();bindExpandingListEvent();buildAjaxExpander();buildAjaxExpanderFix();channelNavHitArea();closeExpandableInfoOnBlur();closeMainMenuOnBlur();createToggleableText();createVLPlayer();dropDownConvert();extendedPeopleToggle();expandableInfoToggle();highlightFormInput();jPlayerInit();loadVideoTranscript();loadBrightcovePlayer();mainMenuDropDowns();myCspanBookmarkLinks();notificationToggle();initPlayer();purchaseVideoForms();
  reportVideo();responsiveChannels();responsiveMoveElement();scrollToPoint();tagSubnav();tagSubnavAjax();toggleHistory();toggleMemberFilter();toggleMemberMap();toggleMobileLogout();toggleResourceList();videoMoreInfo();wivToggleEvents()});
  