function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(n){mejs.YouTubeApi.flashReady(n)}var glb_Path,mejs;jQuery.fn.cpaPrint=function(n){var r,u,t;if(this.size()>1){this.eq(0).print();return}if(this.size()){if(r="printer-"+(new Date).getTime(),u=$("<iframe name='"+r+"'>"),u.css("width","1px").css("height","1px").css("position","absolute").css("left","-9999px").appendTo($("body:first")),n.addClasses!=undefined&&n.addClasses!=null)for(t=0;t<n.addClasses.length;t++)$(n.addClasses[t][0]).addClass(n.addClasses[t][1]);var f=window.frames[r],i=f.document,e=$("<div>").append($("link").clone());if(i.open(),i.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'),i.write("<html>"),i.write("<head>"),i.write("<title>"),i.write(document.title),i.write("<\/title>"),i.write(e.html()),i.write("<\/head>"),i.write("<body>"),n.addAtBeginning!=undefined&&n.addAtBeginning!=null)for(t=0;t<n.addAtBeginning.length;t++)i.write(n.addAtBeginning[t]);if(i.write(this.html()),i.write("<\/body>"),i.write("<\/html>"),i.close(),f.focus(),f.print(),n.addClasses!=undefined&&n.addClasses!=null)for(t=0;t<n.addClasses.length;t++)$(n.addClasses[t][0]).removeClass(n.addClasses[t][1]);setTimeout(function(){u.remove()},6e4)}},function(){var n={jQuery:"http://code.jquery.com/jquery-latest.min.js"},f=function(){(function(n){n.fn.idTabs=function(){for(var t={},i,r=0;r<arguments.length;++r){i=arguments[r];switch(i.constructor){case Object:n.extend(t,i);break;case Boolean:t.change=i;break;case Number:t.start=i;break;case Function:t.click=i;break;case String:i.charAt(0)=="."?t.selected=i:i.charAt(0)=="!"?t.event=i:t.start=i}}return typeof t["return"]=="function"&&(t.change=t["return"]),this.each(function(){n.idTabs(this,t)})};n.idTabs=function(t,r){var s=n.metadata?n(t).metadata():{},u=n.extend({},n.idTabs.settings,s,r),o,e,f;return u.selected.charAt(0)=="."&&(u.selected=u.selected.substr(1)),u.event.charAt(0)=="!"&&(u.event=u.event.substr(1)),u.start==null&&(u.start=-1),o=function(){if(n(this).is("."+u.selected))return u.change;var e="#"+this.href.split("#")[1],f=[],r=[];if(n("a",t).each(function(){this.href.match(/#/)&&(f.push(this),r.push("#"+this.href.split("#")[1]))}),u.click&&!u.click.apply(this,[e,r,t,u]))return u.change;for(i in f)n(f[i]).removeClass(u.selected);for(i in r)n(r[i]).hide();return n(this).addClass(u.selected),n(e).show(),u.change},e=n("a[href*='#']",t).unbind(u.event,o).bind(u.event,o),e.each(function(){n("#"+this.href.split("#")[1]).hide()}),f=!1,(f=e.filter("."+u.selected)).length||typeof u.start=="number"&&(f=e.eq(u.start)).length||typeof u.start=="string"&&(f=e.filter("[href*='#"+u.start+"']")).length,f&&(f.removeClass(u.selected),f.trigger(u.event)),u};n.idTabs.settings={start:0,change:!1,click:null,selected:".selected",event:"!click"};n.idTabs.version="2.2";n(function(){n(".idTabs").idTabs()})})(jQuery)},e=function(n,t){for(t=t.split(".");n&&t.length;)n=n[t.shift()];return n},o=document.getElementsByTagName("head")[0],t=function(n){var t=document.createElement("script");t.type="text/javascript";t.src=n;o.appendChild(t)},r=document.getElementsByTagName("script"),s=r[r.length-1].src,u=!0;for(d in n)e(this,d)||(u=!1,t(n[d]));if(u)return f();t(s)}();glb_Path="/_IncludeFiles/Scripts/jQuery/MediaElements/";mejs=mejs||{};mejs.version="2.16.2";mejs.meIndex=0;mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/youtube","video/x-youtube","application/x-mpegURL"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]};mejs.Utility={encodeUrl:function(n){return encodeURIComponent(n)},escapeHTML:function(n){return n.toString().split("&").join("&amp;").split("<").join("&lt;").split('"').join("&quot;")},absolutizeUrl:function(n){var t=document.createElement("div");return t.innerHTML='<a href="'+this.escapeHTML(n)+'">x<\/a>',t.firstChild.href},getScriptPath:function(n){for(var i,r,s,t,u,f,e=0,o="",h="",c=document.getElementsByTagName("script"),l=c.length,a=n.length;l>e;e++){for(t=c[e].src,r=t.lastIndexOf("/"),r>-1?(f=t.substring(r+1),u=t.substring(0,r+1)):(f=t,u=""),i=0;a>i;i++)if(h=n[i],s=f.indexOf(h),s>-1){o=u;break}if(""!==o)break}return o},secondsToTimeCode:function(n,t,i,r){"undefined"==typeof i?i=!1:"undefined"==typeof r&&(r=25);var u=Math.floor(n/3600)%24,f=Math.floor(n/60)%60,e=Math.floor(n%60),o=Math.floor((n%1*r).toFixed(3));return(t||u>0?(10>u?"0"+u:u)+":":"")+(10>f?"0"+f:f)+":"+(10>e?"0"+e:e)+(i?":"+(10>o?"0"+o:o):"")},timeCodeToSeconds:function(n,t,i,r){"undefined"==typeof i?i=!1:"undefined"==typeof r&&(r=25);var u=n.split(":"),e=parseInt(u[0],10),o=parseInt(u[1],10),s=parseInt(u[2],10),f=0,h=0;return i&&(f=parseInt(u[3])/r),h=3600*e+60*o+s+f},convertSMPTEtoSeconds:function(n){var t;if("string"!=typeof n)return!1;n=n.replace(",",".");var r=0,u=-1!=n.indexOf(".")?n.split(".")[1].length:0,i=1;for(n=n.split(":").reverse(),t=0;t<n.length;t++)i=1,t>0&&(i=Math.pow(60,t)),r+=Number(n[t])*i;return Number(r.toFixed(u))},removeSwf:function(n){var t=document.getElementById(n);t&&/object|embed/i.test(t.nodeName)&&(mejs.MediaFeatures.isIE?(t.style.display="none",function(){4==t.readyState?mejs.Utility.removeObjectInIE(n):setTimeout(arguments.callee,10)}()):t.parentNode.removeChild(t))},removeObjectInIE:function(n){var t=document.getElementById(n),i;if(t){for(i in t)"function"==typeof t[i]&&(t[i]=null);t.parentNode.removeChild(t)}}};mejs.PluginDetector={hasPluginVersion:function(n,t){var i=this.plugins[n];return t[1]=t[1]||0,t[2]=t[2]||0,i[0]>t[0]||i[0]==t[0]&&i[1]>t[1]||i[0]==t[0]&&i[1]==t[1]&&i[2]>=t[2]?!0:!1},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(n,t,i,r,u){this.plugins[n]=this.detectPlugin(t,i,r,u)},detectPlugin:function(n,t,i,r){var e,f,o,u=[0,0,0];if("undefined"!=typeof this.nav.plugins&&"object"==typeof this.nav.plugins[n]){if(e=this.nav.plugins[n].description,e&&("undefined"==typeof this.nav.mimeTypes||!this.nav.mimeTypes[t]||this.nav.mimeTypes[t].enabledPlugin))for(u=e.replace(n,"").replace(/^\s+/,"").replace(/\sr/gi,".").split("."),f=0;f<u.length;f++)u[f]=parseInt(u[f].match(/\d+/),10)}else if("undefined"!=typeof window.ActiveXObject)try{o=new ActiveXObject(i);o&&(u=r(o))}catch(s){}return u}};mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(n){var i=[],t=n.GetVariable("$version");return t&&(t=t.split(" ")[1].split(","),i=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)]),i});mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(n){var t=[0,0,0,0],i=function(n,t,i,r){for(;n.isVersionSupported(t[0]+"."+t[1]+"."+t[2]+"."+t[3]);)t[i]+=r;t[i]-=r};return i(n,t,0,1),i(n,t,1,1),i(n,t,2,1e4),i(n,t,2,1e3),i(n,t,2,100),i(n,t,2,10),i(n,t,2,1),i(n,t,3,1),t});mejs.MediaFeatures={init:function(){var r,i,n=this,u=document,f=mejs.PluginDetector.nav,t=mejs.PluginDetector.ua.toLowerCase(),e=["source","track","audio","video"];for(n.isiPad=null!==t.match(/ipad/i),n.isiPhone=null!==t.match(/iphone/i),n.isiOS=n.isiPhone||n.isiPad,n.isAndroid=null!==t.match(/android/i),n.isBustedAndroid=null!==t.match(/android 2\.[12]/),n.isBustedNativeHTTPS="https:"===location.protocol&&(null!==t.match(/android [12]\./)||null!==t.match(/macintosh.* version.* safari/)),n.isIE=-1!=f.appName.toLowerCase().indexOf("microsoft")||null!==f.appName.toLowerCase().match(/trident/gi),n.isChrome=null!==t.match(/chrome/gi),n.isChromium=null!==t.match(/chromium/gi),n.isFirefox=null!==t.match(/firefox/gi),n.isWebkit=null!==t.match(/webkit/gi),n.isGecko=null!==t.match(/gecko/gi)&&!n.isWebkit&&!n.isIE,n.isOpera=null!==t.match(/opera/gi),n.hasTouch=("ontouchstart"in window),n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r=0;r<e.length;r++)i=document.createElement(e[r]);n.supportsMediaTag="undefined"!=typeof i.canPlayType||n.isBustedAndroid;try{i.canPlayType("video/mp4")}catch(o){n.supportsMediaTag=!1}n.hasSemiNativeFullScreen="undefined"!=typeof i.webkitEnterFullscreen;n.hasNativeFullscreen="undefined"!=typeof i.requestFullscreen;n.hasWebkitNativeFullScreen="undefined"!=typeof i.webkitRequestFullScreen;n.hasMozNativeFullScreen="undefined"!=typeof i.mozRequestFullScreen;n.hasMsNativeFullScreen="undefined"!=typeof i.msRequestFullscreen;n.hasTrueNativeFullScreen=n.hasWebkitNativeFullScreen||n.hasMozNativeFullScreen||n.hasMsNativeFullScreen;n.nativeFullScreenEnabled=n.hasTrueNativeFullScreen;n.hasMozNativeFullScreen?n.nativeFullScreenEnabled=document.mozFullScreenEnabled:n.hasMsNativeFullScreen&&(n.nativeFullScreenEnabled=document.msFullscreenEnabled);n.isChrome&&(n.hasSemiNativeFullScreen=!1);n.hasTrueNativeFullScreen&&(n.fullScreenEventName="",n.hasWebkitNativeFullScreen?n.fullScreenEventName="webkitfullscreenchange":n.hasMozNativeFullScreen?n.fullScreenEventName="mozfullscreenchange":n.hasMsNativeFullScreen&&(n.fullScreenEventName="MSFullscreenChange"),n.isFullScreen=function(){return n.hasMozNativeFullScreen?u.mozFullScreen:n.hasWebkitNativeFullScreen?u.webkitIsFullScreen:n.hasMsNativeFullScreen?null!==u.msFullscreenElement:void 0},n.requestFullScreen=function(t){n.hasWebkitNativeFullScreen?t.webkitRequestFullScreen():n.hasMozNativeFullScreen?t.mozRequestFullScreen():n.hasMsNativeFullScreen&&t.msRequestFullscreen()},n.cancelFullScreen=function(){n.hasWebkitNativeFullScreen?document.webkitCancelFullScreen():n.hasMozNativeFullScreen?document.mozCancelFullScreen():n.hasMsNativeFullScreen&&document.msExitFullscreen()});n.hasSemiNativeFullScreen&&t.match(/mac os x 10_5/i)&&(n.hasNativeFullScreen=!1,n.hasSemiNativeFullScreen=!1)}};mejs.MediaFeatures.init();mejs.HtmlMediaElement={pluginType:"native",isFullScreen:!1,setCurrentTime:function(n){this.currentTime=n},setMuted:function(n){this.muted=n},setVolume:function(n){this.volume=n},stop:function(){this.pause()},setSrc:function(n){for(var t,r,i=this.getElementsByTagName("source");i.length>0;)this.removeChild(i[0]);if("string"==typeof n)this.src=n;else for(t=0;t<n.length;t++)if(r=n[t],this.canPlayType(r.type)){this.src=r.src;break}},setVideoSize:function(n,t){this.width=n;this.height=t}};mejs.PluginMediaElement=function(n,t,i){this.id=n;this.pluginType=t;this.src=i;this.events={};this.attributes={}};mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:!1,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:!0,ended:!1,seeking:!1,duration:0,error:null,tagName:"",muted:!1,volume:1,currentTime:0,play:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.playVideo():this.pluginApi.playMedia(),this.paused=!1)},load:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType||this.pluginApi.loadMedia(),this.paused=!1)},pause:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.pauseVideo():this.pluginApi.pauseMedia(),this.paused=!0)},stop:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.stopVideo():this.pluginApi.stopMedia(),this.paused=!0)},canPlayType:function(n){for(var i,r,u=mejs.plugins[this.pluginType],t=0;t<u.length;t++)if(r=u[t],mejs.PluginDetector.hasPluginVersion(this.pluginType,r.version))for(i=0;i<r.types.length;i++)if(n==r.types[i])return"probably";return""},positionFullscreenButton:function(n,t,i){null!=this.pluginApi&&this.pluginApi.positionFullscreenButton&&this.pluginApi.positionFullscreenButton(Math.floor(n),Math.floor(t),i)},hideFullscreenButton:function(){null!=this.pluginApi&&this.pluginApi.hideFullscreenButton&&this.pluginApi.hideFullscreenButton()},setSrc:function(n){if("string"==typeof n)this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(n)),this.src=mejs.Utility.absolutizeUrl(n);else for(var i,t=0;t<n.length;t++)if(i=n[t],this.canPlayType(i.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(i.src));this.src=mejs.Utility.absolutizeUrl(n);break}},setCurrentTime:function(n){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.seekTo(n):this.pluginApi.setCurrentTime(n),this.currentTime=n)},setVolume:function(n){null!=this.pluginApi&&(this.pluginApi.setVolume("youtube"==this.pluginType?100*n:n),this.volume=n)},setMuted:function(n){null!=this.pluginApi&&("youtube"==this.pluginType?(n?this.pluginApi.mute():this.pluginApi.unMute(),this.muted=n,this.dispatchEvent("volumechange")):this.pluginApi.setMuted(n),this.muted=n)},setVideoSize:function(n,t){this.pluginElement&&this.pluginElement.style&&(this.pluginElement.style.width=n+"px",this.pluginElement.style.height=t+"px");null!=this.pluginApi&&this.pluginApi.setVideoSize&&this.pluginApi.setVideoSize(n,t)},setFullscreen:function(n){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.pluginApi.setFullscreen(n)},enterFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!0)},exitFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!1)},addEventListener:function(n,t){this.events[n]=this.events[n]||[];this.events[n].push(t)},removeEventListener:function(n,t){var r,i;if(!n)return this.events={},!0;if(r=this.events[n],!r)return!0;if(!t)return this.events[n]=[],!0;for(i=0;i<r.length;i++)if(r[i]===t)return this.events[n].splice(i,1),!0;return!1},dispatchEvent:function(n){var t,r,i=this.events[n];if(i)for(r=Array.prototype.slice.call(arguments,1),t=0;t<i.length;t++)i[t].apply(this,r)},hasAttribute:function(n){return n in this.attributes},removeAttribute:function(n){delete this.attributes[n]},getAttribute:function(n){return this.hasAttribute(n)?this.attributes[n]:""},setAttribute:function(n,t){this.attributes[n]=t},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id);mejs.MediaPluginBridge.unregisterPluginElement(this.pluginElement.id)}};mejs.MediaPluginBridge={pluginMediaElements:{},htmlMediaElements:{},registerPluginElement:function(n,t,i){this.pluginMediaElements[n]=t;this.htmlMediaElements[n]=i},unregisterPluginElement:function(n){delete this.pluginMediaElements[n];delete this.htmlMediaElements[n]},initPlugin:function(n){var t=this.pluginMediaElements[n],i=this.htmlMediaElements[n];if(t){switch(t.pluginType){case"flash":t.pluginElement=t.pluginApi=document.getElementById(n);break;case"silverlight":t.pluginElement=document.getElementById(t.id);t.pluginApi=t.pluginElement.Content.MediaElementJS}null!=t.pluginApi&&t.success&&t.success(t,i)}},fireEvent:function(n,t,i){var r,u,e,f=this.pluginMediaElements[n];if(f){r={type:t,target:f};for(u in i)f[u]=i[u],r[u]=i[u];e=i.bufferedTime||0;r.target.buffered=r.buffered={start:function(){return 0},end:function(){return e},length:1};f.dispatchEvent(r.type,r)}}};mejs.MediaElementDefaults={mode:"auto",plugins:["flash","silverlight","youtube","vimeo"],enablePluginDebug:!1,httpsBasicAuthSite:!1,type:"",pluginPath:mejs.Utility.getScriptPath(["mediaelement.js","mediaelement.min.js","mediaelement-and-player.js","mediaelement-and-player.min.js"]),flashName:glb_Path+"flashmediaelement.swf",flashStreamer:"",enablePluginSmoothing:!1,enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",silverlightName:"silverlightmediaelement.xap",defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:.8,success:function(){},error:function(){}};mejs.MediaElement=function(n,t){return mejs.HtmlMediaElementShim.create(n,t)};mejs.HtmlMediaElementShim={create:function(n,t){var i,c,s=mejs.MediaElementDefaults,r="string"==typeof n?document.getElementById(n):n,l=r.tagName.toLowerCase(),a="audio"===l||"video"===l,f=r.getAttribute(a?"src":"href"),e=r.getAttribute("poster"),o=r.getAttribute("autoplay"),u=r.getAttribute("preload"),h=r.getAttribute("controls");for(c in t)s[c]=t[c];return f="undefined"==typeof f||null===f||""==f?null:f,e="undefined"==typeof e||null===e?"":e,u="undefined"==typeof u||null===u||"false"===u?"none":u,o=!("undefined"==typeof o||null===o||"false"===o),h=!("undefined"==typeof h||null===h||"false"===h),i=this.determinePlayback(r,s,mejs.MediaFeatures.supportsMediaTag,a,f),i.url=null!==i.url?mejs.Utility.absolutizeUrl(i.url):"","native"==i.method?(mejs.MediaFeatures.isBustedAndroid&&(r.src=i.url,r.addEventListener("click",function(){r.play()},!1)),this.updateNative(i,s,o,u)):""!==i.method?this.createPlugin(i,s,e,o,u,h):(this.createErrorMessage(i,s,e),this)},determinePlayback:function(n,t,i,r,u){var f,l,a,v,s,h,y,p,c,w,b,e=[],o={method:"",url:"",htmlMediaElement:n,isVideo:"audio"!=n.tagName.toLowerCase()};if("undefined"!=typeof t.type&&""!==t.type)if("string"==typeof t.type)e.push({type:t.type,url:u});else for(f=0;f<t.type.length;f++)e.push({type:t.type[f],url:u});else if(null!==u)h=this.formatType(u,n.getAttribute("type")),e.push({type:h,url:u});else for(f=0;f<n.childNodes.length;f++)s=n.childNodes[f],1==s.nodeType&&"source"==s.tagName.toLowerCase()&&(u=s.getAttribute("src"),h=this.formatType(u,s.getAttribute("type")),b=s.getAttribute("media"),(!b||!window.matchMedia||window.matchMedia&&window.matchMedia(b).matches)&&e.push({type:h,url:u}));if(!r&&e.length>0&&null!==e[0].url&&this.getTypeFromFile(e[0].url).indexOf("audio")>-1&&(o.isVideo=!1),mejs.MediaFeatures.isBustedAndroid&&(n.canPlayType=function(n){return null!==n.match(/video\/(mp4|m4v)/gi)?"maybe":""}),mejs.MediaFeatures.isChromium&&(n.canPlayType=function(n){return null!==n.match(/video\/(webm|ogv|ogg)/gi)?"maybe":""}),!(!i||"auto"!==t.mode&&"auto_plugin"!==t.mode&&"native"!==t.mode||mejs.MediaFeatures.isBustedNativeHTTPS&&t.httpsBasicAuthSite===!0)){for(r||(w=document.createElement(o.isVideo?"video":"audio"),n.parentNode.insertBefore(w,n),n.style.display="none",o.htmlMediaElement=n=w),f=0;f<e.length;f++)if("video/m3u8"==e[f].type||""!==n.canPlayType(e[f].type).replace(/no/,"")||""!==n.canPlayType(e[f].type.replace(/mp3/,"mpeg")).replace(/no/,"")||""!==n.canPlayType(e[f].type.replace(/m4a/,"mp4")).replace(/no/,"")){o.method="native";o.url=e[f].url;break}if("native"===o.method&&(null!==o.url&&(n.src=o.url),"auto_plugin"!==t.mode))return o}if("auto"===t.mode||"auto_plugin"===t.mode||"shim"===t.mode)for(f=0;f<e.length;f++)for(h=e[f].type,l=0;l<t.plugins.length;l++)for(y=t.plugins[l],p=mejs.plugins[y],a=0;a<p.length;a++)if(c=p[a],null==c.version||mejs.PluginDetector.hasPluginVersion(y,c.version))for(v=0;v<c.types.length;v++)if(h==c.types[v])return o.method=y,o.url=e[f].url,o;return"auto_plugin"===t.mode&&"native"===o.method?o:(""===o.method&&e.length>0&&(o.url=e[0].url),o)},formatType:function(n,t){return n&&!t?this.getTypeFromFile(n):t&&~t.indexOf(";")?t.substr(0,t.indexOf(";")):t},getTypeFromFile:function(n){n=n.split("?")[0];var t=n.substring(n.lastIndexOf(".")+1).toLowerCase();return(/(mp4|m4v|ogg|ogv|m3u8|webm|webmv|flv|wmv|mpeg|mov)/gi.test(t)?"video":"audio")+"/"+this.getTypeFromExtension(t)},getTypeFromExtension:function(n){switch(n){case"mp4":case"m4v":case"m4a":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return n}},createErrorMessage:function(n,t,i){var r=n.htmlMediaElement,u=document.createElement("div");u.className="me-cannotplay";try{u.style.width=r.width+"px";u.style.height=r.height+"px"}catch(f){}u.innerHTML=t.customError?t.customError:""!==i?'<a href="'+n.url+'"><img src="'+i+'" width="100%" height="100%" /><\/a>':'<a href="'+n.url+'"><span>'+mejs.i18n.t("Download File")+"<\/span><\/a>";r.parentNode.insertBefore(u,r);r.style.display="none";t.error(r)},createPlugin:function(n,t,i,r,u,f){var k,a,l,s=n.htmlMediaElement,v=1,y=1,h="me_"+n.method+"_"+mejs.meIndex++,o=new mejs.PluginMediaElement(h,n.method,n.url),c=document.createElement("div"),w,b,p,d,e;for(o.tagName=s.tagName,w=0;w<s.attributes.length;w++)b=s.attributes[w],1==b.specified&&o.setAttribute(b.name,b.value);for(a=s.parentNode;null!==a&&"body"!==a.tagName.toLowerCase()&&null!=a.parentNode;){if("p"===a.parentNode.tagName.toLowerCase()){a.parentNode.parentNode.insertBefore(a,a.parentNode);break}a=a.parentNode}switch(n.isVideo?(v=t.pluginWidth>0?t.pluginWidth:t.videoWidth>0?t.videoWidth:null!==s.getAttribute("width")?s.getAttribute("width"):t.defaultVideoWidth,y=t.pluginHeight>0?t.pluginHeight:t.videoHeight>0?t.videoHeight:null!==s.getAttribute("height")?s.getAttribute("height"):t.defaultVideoHeight,v=mejs.Utility.encodeUrl(v),y=mejs.Utility.encodeUrl(y)):t.enablePluginDebug&&(v=320,y=240),o.success=t.success,mejs.MediaPluginBridge.registerPluginElement(h,o,s),c.className="me-plugin",c.id=h+"_container",n.isVideo?s.parentNode.insertBefore(c,s):document.body.insertBefore(c,document.body.childNodes[0]),l=["id="+h,"isvideo="+(n.isVideo?"true":"false"),"autoplay="+(r?"true":"false"),"preload="+u,"width="+v,"startvolume="+t.startVolume,"timerrate="+t.timerRate,"flashstreamer="+t.flashStreamer,"height="+y,"pseudostreamstart="+t.pseudoStreamingStartQueryParam],null!==n.url&&l.push("flash"==n.method?"file="+mejs.Utility.encodeUrl(n.url):"file="+n.url),t.enablePluginDebug&&l.push("debug=true"),t.enablePluginSmoothing&&l.push("smoothing=true"),t.enablePseudoStreaming&&l.push("pseudostreaming=true"),f&&l.push("controls=true"),t.pluginVars&&(l=l.concat(t.pluginVars)),n.method){case"silverlight":c.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+h+'" name="'+h+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="initParams" value="'+l.join(",")+'" /><param name="windowless" value="true" /><param name="background" value="black" /><param name="minRuntimeVersion" value="3.0.0.0" /><param name="autoUpgrade" value="true" /><param name="source" value="'+t.pluginPath+t.silverlightName+'" /><\/object>';break;case"flash":mejs.MediaFeatures.isIE?(k=document.createElement("div"),c.appendChild(k),k.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+h+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="movie" value="'+t.pluginPath+t.flashName+"?x="+new Date+'" /><param name="flashvars" value="'+l.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="scale" value="default" /><\/object>'):c.innerHTML='<embed id="'+h+'" name="'+h+'" play="true" loop="false" quality="high" bgcolor="#000000" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" src="'+t.pluginPath+t.flashName+'" flashvars="'+l.join("&")+'" width="'+v+'" height="'+y+'" scale="default"class="mejs-shim"><\/embed>';break;case"youtube":-1!=n.url.lastIndexOf("youtu.be")?(p=n.url.substr(n.url.lastIndexOf("/")+1),-1!=p.indexOf("?")&&(p=p.substr(0,p.indexOf("?")))):p=n.url.substr(n.url.lastIndexOf("=")+1);youtubeSettings={container:c,containerId:c.id,pluginMediaElement:o,pluginId:h,videoId:p,height:y,width:v};mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])?mejs.YouTubeApi.createFlash(youtubeSettings):mejs.YouTubeApi.enqueueIframe(youtubeSettings);break;case"vimeo":d=h+"_player";(o.vimeoid=n.url.substr(n.url.lastIndexOf("/")+1),c.innerHTML='<iframe src="//player.vimeo.com/video/'+o.vimeoid+"?api=1&portrait=0&byline=0&title=0&player_id="+d+'" width="'+v+'" height="'+y+'" frameborder="0" class="mejs-shim" id="'+d+'" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>',"function"==typeof $f)?(e=$f(c.childNodes[0]),e.addEvent("ready",function(){function n(n,t,i,r){var u={type:i,target:t};"timeupdate"==i&&(t.currentTime=u.currentTime=r.seconds,t.duration=u.duration=r.duration);t.dispatchEvent(u.type,u)}$.extend(e,{playVideo:function(){e.api("play")},stopVideo:function(){e.api("unload")},pauseVideo:function(){e.api("pause")},seekTo:function(n){e.api("seekTo",n)},setVolume:function(n){e.api("setVolume",n)},setMuted:function(n){n?(e.lastVolume=e.api("getVolume"),e.api("setVolume",0)):(e.api("setVolume",e.lastVolume),delete e.lastVolume)}});e.addEvent("play",function(){n(e,o,"play");n(e,o,"playing")});e.addEvent("pause",function(){n(e,o,"pause")});e.addEvent("finish",function(){n(e,o,"ended")});e.addEvent("playProgress",function(t){n(e,o,"timeupdate",t)});o.pluginElement=c;o.pluginApi=e;mejs.MediaPluginBridge.initPlugin(h)})):console.warn("You need to include froogaloop for vimeo to work")}return s.style.display="none",s.removeAttribute("autoplay"),o},updateNative:function(n,t){var r,i=n.htmlMediaElement;for(r in mejs.HtmlMediaElement)i[r]=mejs.HtmlMediaElement[r];return t.success(i,i),i}};mejs.YouTubeApi={isIframeStarted:!1,isIframeLoaded:!1,loadIframeApi:function(){var n,t;this.isIframeStarted||(n=document.createElement("script"),n.src="//www.youtube.com/player_api",t=document.getElementsByTagName("script")[0],t.parentNode.insertBefore(n,t),this.isIframeStarted=!0)},iframeQueue:[],enqueueIframe:function(n){this.isLoaded?this.createIframe(n):(this.loadIframeApi(),this.iframeQueue.push(n))},createIframe:function(n){var i=n.pluginMediaElement,t=new YT.Player(n.containerId,{height:n.height,width:n.width,videoId:n.videoId,playerVars:{controls:0},events:{onReady:function(){n.pluginMediaElement.pluginApi=t;mejs.MediaPluginBridge.initPlugin(n.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(t,i,"timeupdate")},250)},onStateChange:function(n){mejs.YouTubeApi.handleStateChange(n.data,t,i)}}})},createEvent:function(n,t,i){var r={type:i,target:t},u;n&&n.getDuration&&(t.currentTime=r.currentTime=n.getCurrentTime(),t.duration=r.duration=n.getDuration(),r.paused=t.paused,r.ended=t.ended,r.muted=n.isMuted(),r.volume=n.getVolume()/100,r.bytesTotal=n.getVideoBytesTotal(),r.bufferedBytes=n.getVideoBytesLoaded(),u=r.bufferedBytes/r.bytesTotal*r.duration,r.target.buffered=r.buffered={start:function(){return 0},end:function(){return u},length:1});t.dispatchEvent(r.type,r)},iFrameReady:function(){for(this.isLoaded=!0,this.isIframeLoaded=!0;this.iframeQueue.length>0;){var n=this.iframeQueue.pop();this.createIframe(n)}},flashPlayers:{},createFlash:function(n){this.flashPlayers[n.pluginId]=n;var t,i="//www.youtube.com/apiplayer?enablejsapi=1&amp;playerapiid="+n.pluginId+"&amp;version=3&amp;autoplay=0&amp;controls=0&amp;modestbranding=1&loop=0";mejs.MediaFeatures.isIE?(t=document.createElement("div"),n.container.appendChild(t),t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+n.pluginId+'" width="'+n.width+'" height="'+n.height+'" class="mejs-shim"><param name="movie" value="'+i+'" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><\/object>'):n.container.innerHTML='<object type="application/x-shockwave-flash" id="'+n.pluginId+'" data="'+i+'" width="'+n.width+'" height="'+n.height+'" style="visibility: visible; " class="mejs-shim"><param name="allowScriptAccess" value="always"><param name="wmode" value="transparent"><\/object>'},flashReady:function(n){var r=this.flashPlayers[n],t=document.getElementById(n),i=r.pluginMediaElement,u;i.pluginApi=i.pluginElement=t;mejs.MediaPluginBridge.initPlugin(n);t.cueVideoById(r.videoId);u=r.containerId+"_callback";window[u]=function(n){mejs.YouTubeApi.handleStateChange(n,t,i)};t.addEventListener("onStateChange",u);setInterval(function(){mejs.YouTubeApi.createEvent(t,i,"timeupdate")},250);mejs.YouTubeApi.createEvent(t,i,"canplay")},handleStateChange:function(n,t,i){switch(n){case-1:i.paused=!0;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"loadedmetadata");break;case 0:i.paused=!1;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"ended");break;case 1:i.paused=!1;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"play");mejs.YouTubeApi.createEvent(t,i,"playing");break;case 2:i.paused=!0;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"pause");break;case 3:mejs.YouTubeApi.createEvent(t,i,"progress")}}};window.mejs=mejs;window.MediaElement=mejs.MediaElement,function(n,t){"use strict";var i={locale:{language:t.i18n&&t.i18n.locale.language||"",strings:t.i18n&&t.i18n.locale.strings||{}},ietf_lang_regex:/^(x\-)?[a-z]{2,}(\-\w{2,})?(\-\w{2,})?$/,methods:{}};i.getLanguage=function(){var n=i.locale.language||window.navigator.userLanguage||window.navigator.language;return i.ietf_lang_regex.exec(n)?n:null};"undefined"!=typeof mejsL10n&&(i.locale.language=mejsL10n.language);i.methods.checkPlain=function(n){var t,r,i={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"};n=String(n);for(t in i)i.hasOwnProperty(t)&&(r=new RegExp(t,"g"),n=n.replace(r,i[t]));return n};i.methods.t=function(n,t){return i.locale.strings&&i.locale.strings[t.context]&&i.locale.strings[t.context][n]&&(n=i.locale.strings[t.context][n]),i.methods.checkPlain(n)};i.t=function(n,t){if("string"==typeof n&&n.length>0){var r=i.getLanguage();return t=t||{context:r},i.methods.t(n,t)}throw{name:"InvalidArgumentException",message:"First argument is either not a string or empty."};};t.i18n=i}(document,mejs),function(n){"use strict";"undefined"!=typeof mejsL10n&&(n[mejsL10n.language]=mejsL10n.strings)}(mejs.i18n.locale.strings);"undefined"!=typeof jQuery?mejs.$=jQuery:"undefined"!=typeof ender&&(mejs.$=ender),function(n){mejs.MepDefaults={poster:"",showPosterWhenEnded:!1,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(n){return.05*n.duration},defaultSeekForwardInterval:function(n){return.05*n.duration},setDimensions:!0,audioWidth:-1,audioHeight:-1,startVolume:.8,loop:!1,autoRewind:!0,enableAutosize:!0,alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,autosizeProgress:!0,alwaysShowControls:!1,hideVideoControlsOnLoad:!1,clickToPlayPause:!0,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:!0,enableKeyboard:!0,pauseOtherPlayers:!0,keyActions:[{keys:[32,179],action:function(n,t){t.paused||t.ended?n.play():n.pause()}},{keys:[38],action:function(n,t){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.min(t.volume+.1,1);t.setVolume(i)}},{keys:[40],action:function(n,t){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.max(t.volume-.1,0);t.setVolume(i)}},{keys:[37,227],action:function(n,t){if(!isNaN(t.duration)&&t.duration>0){n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.max(t.currentTime-n.options.defaultSeekBackwardInterval(t),0);t.setCurrentTime(i)}}},{keys:[39,228],action:function(n,t){if(!isNaN(t.duration)&&t.duration>0){n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.min(t.currentTime+n.options.defaultSeekForwardInterval(t),t.duration);t.setCurrentTime(i)}}},{keys:[70],action:function(n){"undefined"!=typeof n.enterFullScreen&&(n.isFullScreen?n.exitFullScreen():n.enterFullScreen())}},{keys:[77],action:function(n){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());n.setMuted(n.media.muted?!1:!0)}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(t,i){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(t,i);var r=this;return r.$media=r.$node=n(t),r.node=r.media=r.$media[0],"undefined"!=typeof r.node.player?r.node.player:(r.node.player=r,"undefined"==typeof i&&(i=r.$node.data("mejsoptions")),r.options=n.extend({},mejs.MepDefaults,i),r.id="mep_"+mejs.mepIndex++,mejs.players[r.id]=r,r.init(),r)};mejs.MediaElementPlayer.prototype={hasFocus:!1,controlsAreVisible:!0,init:function(){var t=this,i=mejs.MediaFeatures,f=n.extend(!0,{},t.options,{success:function(n,i){t.meReady(n,i)},error:function(n){t.handleError(n)}}),e=t.media.tagName.toLowerCase(),o,u,r,s;(t.isDynamic="audio"!==e&&"video"!==e,t.isVideo=t.isDynamic?t.options.isVideo:"audio"!==e&&t.options.isVideo,i.isiPad&&t.options.iPadUseNativeControls||i.isiPhone&&t.options.iPhoneUseNativeControls)?(t.$media.attr("controls","controls"),i.isiPad&&null!==t.media.getAttribute("autoplay")&&t.play()):i.isAndroid&&t.options.AndroidUseNativeControls||(t.$media.removeAttr("controls"),o=mejs.i18n.t(t.isVideo?"Video Player":"Audio Player"),(t.container=n('<span class="mejs-offscreen">'+o+'<\/span><div id="'+t.id+'" class="mejs-container '+(mejs.MediaFeatures.svg?"svg":"no-svg")+'" tabindex="0" role="application" aria-label="'+o+'"><div class="mejs-inner"><div class="mejs-mediaelement"><\/div><div class="mejs-layers"><\/div><div class="mejs-controls"><\/div><div class="mejs-clear"><\/div><\/div><\/div>').addClass(t.$media[0].className).insertBefore(t.$media).focus(function(){if(!t.controlsAreVisible){t.showControls(!0);var n=t.container.find(".mejs-playpause-button > button");n.focus()}}),t.container.addClass((i.isAndroid?"mejs-android ":"")+(i.isiOS?"mejs-ios ":"")+(i.isiPad?"mejs-ipad ":"")+(i.isiPhone?"mejs-iphone ":"")+(t.isVideo?"mejs-video ":"mejs-audio ")),i.isiOS)?(u=t.$media.clone(),t.container.find(".mejs-mediaelement").append(u),t.$media.remove(),t.$node=t.$media=u,t.node=t.media=u[0]):t.container.find(".mejs-mediaelement").append(t.$media),t.controls=t.container.find(".mejs-controls"),t.layers=t.container.find(".mejs-layers"),r=t.isVideo?"video":"audio",s=r.substring(0,1).toUpperCase()+r.substring(1),t.width=t.options[r+"Width"]>0||t.options[r+"Width"].toString().indexOf("%")>-1?t.options[r+"Width"]:""!==t.media.style.width&&null!==t.media.style.width?t.media.style.width:null!==t.media.getAttribute("width")?t.$media.attr("width"):t.options["default"+s+"Width"],t.height=t.options[r+"Height"]>0||t.options[r+"Height"].toString().indexOf("%")>-1?t.options[r+"Height"]:""!==t.media.style.height&&null!==t.media.style.height?t.media.style.height:null!==t.$media[0].getAttribute("height")?t.$media.attr("height"):t.options["default"+s+"Height"],t.setPlayerSize(t.width,t.height),f.pluginWidth=t.width,f.pluginHeight=t.height);mejs.MediaElement(t.$media[0],f);"undefined"!=typeof t.container&&t.controlsAreVisible&&t.container.trigger("controlsshown")},showControls:function(n){var t=this;n="undefined"==typeof n||n;t.controlsAreVisible||(n?(t.controls.css("visibility","visible").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0;t.container.trigger("controlsshown")}),t.container.find(".mejs-control").css("visibility","visible").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0})):(t.controls.css("visibility","visible").css("display","block"),t.container.find(".mejs-control").css("visibility","visible").css("display","block"),t.controlsAreVisible=!0,t.container.trigger("controlsshown")),t.setControlsSize())},hideControls:function(t){var i=this;t="undefined"==typeof t||t;!i.controlsAreVisible||i.options.alwaysShowControls||i.keyboardAction||(t?(i.controls.stop(!0,!0).fadeOut(200,function(){n(this).css("visibility","hidden").css("display","block");i.controlsAreVisible=!1;i.container.trigger("controlshidden")}),i.container.find(".mejs-control").stop(!0,!0).fadeOut(200,function(){n(this).css("visibility","hidden").css("display","block")})):(i.controls.css("visibility","hidden").css("display","block"),i.container.find(".mejs-control").css("visibility","hidden").css("display","block"),i.controlsAreVisible=!1,i.container.trigger("controlshidden")))},controlsTimer:null,startControlsTimer:function(n){var t=this;n="undefined"!=typeof n?n:1500;t.killControlsTimer("start");t.controlsTimer=setTimeout(function(){t.hideControls();t.killControlsTimer("hide")},n)},killControlsTimer:function(){var n=this;null!==n.controlsTimer&&(clearTimeout(n.controlsTimer),delete n.controlsTimer,n.controlsTimer=null)},controlsEnabled:!0,disableControls:function(){var n=this;n.killControlsTimer();n.hideControls(!1);this.controlsEnabled=!1},enableControls:function(){var n=this;n.showControls(!1);n.controlsEnabled=!0},meReady:function(t,i){var o,u,r=this,f=mejs.MediaFeatures,e=i.getAttribute("autoplay"),s=!("undefined"==typeof e||null===e||"false"===e);if(!r.created){if(r.created=!0,r.media=t,r.domNode=i,!(f.isAndroid&&r.options.AndroidUseNativeControls||f.isiPad&&r.options.iPadUseNativeControls||f.isiPhone&&r.options.iPhoneUseNativeControls)){r.buildposter(r,r.controls,r.layers,r.media);r.buildkeyboard(r,r.controls,r.layers,r.media);r.buildoverlays(r,r.controls,r.layers,r.media);r.findTracks();for(o in r.options.features)if(u=r.options.features[o],r["build"+u])try{r["build"+u](r,r.controls,r.layers,r.media)}catch(h){}r.container.trigger("controlsready");r.setPlayerSize(r.width,r.height);r.setControlsSize();r.isVideo&&(mejs.MediaFeatures.hasTouch?r.$media.bind("touchstart",function(){r.controlsAreVisible?r.hideControls(!1):r.controlsEnabled&&r.showControls(!1)}):(r.clickToPlayPauseCallback=function(){r.options.clickToPlayPause&&(r.media.paused?r.play():r.pause())},r.media.addEventListener("click",r.clickToPlayPauseCallback,!1),r.container.bind("mouseenter mouseover",function(){r.controlsEnabled&&(r.options.alwaysShowControls||(r.killControlsTimer("enter"),r.showControls(),r.startControlsTimer(2500)))}).bind("mousemove",function(){r.controlsEnabled&&(r.controlsAreVisible||r.showControls(),r.options.alwaysShowControls||r.startControlsTimer(2500))}).bind("mouseleave",function(){r.controlsEnabled&&(r.media.paused||r.options.alwaysShowControls||r.startControlsTimer(1e3))})),r.options.hideVideoControlsOnLoad&&r.hideControls(!1),s&&!r.options.alwaysShowControls&&r.hideControls(),r.options.enableAutosize&&r.media.addEventListener("loadedmetadata",function(n){r.options.videoHeight<=0&&null===r.domNode.getAttribute("height")&&!isNaN(n.target.videoHeight)&&(r.setPlayerSize(n.target.videoWidth,n.target.videoHeight),r.setControlsSize(),r.media.setVideoSize(n.target.videoWidth,n.target.videoHeight))},!1));t.addEventListener("play",function(){var t,n;for(t in mejs.players)n=mejs.players[t],n.id==r.id||!r.options.pauseOtherPlayers||n.paused||n.ended||n.pause(),n.hasFocus=!1;r.hasFocus=!0},!1);r.media.addEventListener("ended",function(){if(r.options.autoRewind)try{r.media.setCurrentTime(0);window.setTimeout(function(){n(r.container).find(".mejs-overlay-loading").parent().hide()},20)}catch(t){}r.media.pause();r.setProgressRail&&r.setProgressRail();r.setCurrentRail&&r.setCurrentRail();r.options.loop?r.play():!r.options.alwaysShowControls&&r.controlsEnabled&&r.showControls()},!1);r.media.addEventListener("loadedmetadata",function(){r.updateDuration&&r.updateDuration();r.updateCurrent&&r.updateCurrent();r.isFullScreen||(r.setPlayerSize(r.width,r.height),r.setControlsSize())},!1);r.container.focusout(function(t){if(t.relatedTarget){var i=n(t.relatedTarget);r.keyboardAction&&0===i.parents(".mejs-container").length&&(r.keyboardAction=!1,r.hideControls(!0))}});setTimeout(function(){r.setPlayerSize(r.width,r.height);r.setControlsSize()},50);r.globalBind("resize",function(){r.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen||r.setPlayerSize(r.width,r.height);r.setControlsSize()});"youtube"==r.media.pluginType&&r.options.autoplay&&r.container.find(".mejs-overlay-play").hide()}s&&"native"==t.pluginType&&r.play();r.options.success&&("string"==typeof r.options.success?window[r.options.success](r.media,r.domNode,r):r.options.success(r.media,r.domNode,r))}},handleError:function(n){var t=this;t.controls.hide();t.options.error&&t.options.error(n)},setPlayerSize:function(t,i){var r=this,e,o;if(!r.options.setDimensions)return!1;if("undefined"!=typeof t&&(r.width=t),"undefined"!=typeof i&&(r.height=i),r.height.toString().indexOf("%")>0||"100%"===r.$node.css("max-width")||r.$node[0].currentStyle&&"100%"===r.$node[0].currentStyle.maxWidth){var h=function(){return r.isVideo?r.media.videoWidth&&r.media.videoWidth>0?r.media.videoWidth:null!==r.media.getAttribute("width")?r.media.getAttribute("width"):r.options.defaultVideoWidth:r.options.defaultAudioWidth}(),s=function(){return r.isVideo?r.media.videoHeight&&r.media.videoHeight>0?r.media.videoHeight:null!==r.media.getAttribute("height")?r.media.getAttribute("height"):r.options.defaultVideoHeight:r.options.defaultAudioHeight}(),f=r.container.parent().closest(":visible").width(),c=r.container.parent().closest(":visible").height(),u=r.isVideo||!r.options.autosizeProgress?parseInt(f*s/h,10):s;isNaN(u)&&(u=c);"body"===r.container.parent()[0].tagName.toLowerCase()&&(f=n(window).width(),u=n(window).height());u&&f&&(r.container.width(f).height(u),r.$media.add(r.container.find(".mejs-shim")).width("100%").height("100%"),r.isVideo&&r.media.setVideoSize&&r.media.setVideoSize(f,u),r.layers.children(".mejs-layer").width("100%").height("100%"))}else r.container.width(r.width).height(r.height),r.layers.children(".mejs-layer").width(r.width).height(r.height);e=r.layers.find(".mejs-overlay-play");o=e.find(".mejs-overlay-button");e.height(r.container.height()-r.controls.height());o.css("margin-top","-"+(o.height()/2-r.controls.height()/2).toString()+"px")},setControlsSize:function(){var t=this,e=0,i=0,r=t.controls.find(".mejs-time-rail"),u=t.controls.find(".mejs-time-total"),o=(t.controls.find(".mejs-time-current"),t.controls.find(".mejs-time-loaded"),r.siblings()),s=o.last(),f=null;if(t.container.is(":visible")&&r.length&&r.is(":visible")){t.options&&!t.options.autosizeProgress&&(i=parseInt(r.css("width"),10));0!==i&&i||(o.each(function(){var t=n(this);"absolute"!=t.css("position")&&t.is(":visible")&&(e+=n(this).outerWidth(!0))}),i=t.controls.width()-e-(r.outerWidth(!0)-r.width()));do r.width(i),u.width(i-(u.outerWidth(!0)-u.width())),"absolute"!=s.css("position")&&(f=s.position(),i--);while(null!==f&&f.top>0&&i>0);t.setProgressRail&&t.setProgressRail();t.setCurrentRail&&t.setCurrentRail()}},buildposter:function(t,i,r,u){var o=this,f=n('<div class="mejs-poster mejs-layer"><\/div>').appendTo(r),e=t.$media.attr("poster");""!==t.options.poster&&(e=t.options.poster);e?o.setPoster(e):f.hide();u.addEventListener("play",function(){f.hide()},!1);t.options.showPosterWhenEnded&&t.options.autoRewind&&u.addEventListener("ended",function(){f.show()},!1)},setPoster:function(t){var u=this,i=u.container.find(".mejs-poster"),r=i.find("img");0===r.length&&(r=n('<img width="100%" height="100%" />').appendTo(i));r.attr("src",t);i.css({"background-image":"url("+t+")"})},buildoverlays:function(t,i,r,u){var s=this;if(t.isVideo){var f=n('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-loading"><span><\/span><\/div><\/div>').hide().appendTo(r),e=n('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-error"><\/div><\/div>').hide().appendTo(r),o=n('<div class="mejs-overlay mejs-layer mejs-overlay-play"><div class="mejs-overlay-button"><\/div><\/div>').appendTo(r).bind("click",function(){s.options.clickToPlayPause&&u.paused&&u.play()});u.addEventListener("play",function(){o.hide();f.hide();i.find(".mejs-time-buffering").hide();e.hide()},!1);u.addEventListener("playing",function(){o.hide();f.hide();i.find(".mejs-time-buffering").hide();e.hide()},!1);u.addEventListener("seeking",function(){f.show();i.find(".mejs-time-buffering").show()},!1);u.addEventListener("seeked",function(){f.hide();i.find(".mejs-time-buffering").hide()},!1);u.addEventListener("pause",function(){mejs.MediaFeatures.isiPhone||o.show()},!1);u.addEventListener("waiting",function(){f.show();i.find(".mejs-time-buffering").show()},!1);u.addEventListener("loadeddata",function(){f.show();i.find(".mejs-time-buffering").show();mejs.MediaFeatures.isAndroid&&(u.canplayTimeout=window.setTimeout(function(){if(document.createEvent){var n=document.createEvent("HTMLEvents");return n.initEvent("canplay",!0,!0),u.dispatchEvent(n)}},300))},!1);u.addEventListener("canplay",function(){f.hide();i.find(".mejs-time-buffering").hide();clearTimeout(u.canplayTimeout)},!1);u.addEventListener("error",function(){f.hide();i.find(".mejs-time-buffering").hide();e.show();e.find("mejs-overlay-error").html("Error loading this resource")},!1);u.addEventListener("keydown",function(n){s.onkeydown(t,u,n)},!1)}},buildkeyboard:function(t,i,r,u){var f=this;f.container.keydown(function(){f.keyboardAction=!0});f.globalBind("keydown",function(n){return f.onkeydown(t,u,n)});f.globalBind("click",function(i){t.hasFocus=0!==n(i.target).closest(".mejs-container").length})},onkeydown:function(n,t,i){var r,e;if(n.hasFocus&&n.options.enableKeyboard)for(r=0,e=n.options.keyActions.length;e>r;r++)for(var u=n.options.keyActions[r],f=0,o=u.keys.length;o>f;f++)if(i.keyCode==u.keys[f])return"function"==typeof i.preventDefault&&i.preventDefault(),u.action(n,t,i.keyCode),!1;return!0},findTracks:function(){var t=this,i=t.$media.find("track");t.tracks=[];i.each(function(i,r){r=n(r);t.tracks.push({srclang:r.attr("srclang")?r.attr("srclang").toLowerCase():"",src:r.attr("src"),kind:r.attr("kind"),label:r.attr("label")||"",entries:[],isLoaded:!1})})},changeSkin:function(n){this.container[0].className="mejs-container "+n;this.setPlayerSize(this.width,this.height);this.setControlsSize()},play:function(){this.load();this.media.play()},pause:function(){try{this.media.pause()}catch(n){}},load:function(){this.isLoaded||this.media.load();this.isLoaded=!0},setMuted:function(n){this.media.setMuted(n)},setCurrentTime:function(n){this.media.setCurrentTime(n)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(n){this.media.setVolume(n)},getVolume:function(){return this.media.volume},setSrc:function(n){this.media.setSrc(n)},remove:function(){var i,t,n=this;for(i in n.options.features)if(t=n.options.features[i],n["clean"+t])try{n["clean"+t](n)}catch(r){}n.isDynamic?n.$node.insertBefore(n.container):(n.$media.prop("controls",!0),n.$node.clone().insertBefore(n.container).show(),n.$node.remove());"native"!==n.media.pluginType&&n.media.remove();delete mejs.players[n.id];"object"==typeof n.container&&n.container.remove();n.globalUnbind();delete n.node.player}},function(){function t(t,r){var u={d:[],w:[]};return n.each((t||"").split(" "),function(n,t){var f=t+"."+r;0===f.indexOf(".")?(u.d.push(f),u.w.push(f)):u[i.test(t)?"w":"d"].push(f)}),u.d=u.d.join(" "),u.w=u.w.join(" "),u}var i=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/;mejs.MediaElementPlayer.prototype.globalBind=function(i,r,u){var f=this;i=t(i,f.id);i.d&&n(document).bind(i.d,r,u);i.w&&n(window).bind(i.w,r,u)};mejs.MediaElementPlayer.prototype.globalUnbind=function(i,r){var u=this;i=t(i,u.id);i.d&&n(document).unbind(i.d,r);i.w&&n(window).unbind(i.w,r)}}();"undefined"!=typeof n&&(n.fn.mediaelementplayer=function(t){return this.each(t===!1?function(){var t=n(this).data("mediaelementplayer");t&&t.remove();n(this).removeData("mediaelementplayer")}:function(){n(this).data("mediaelementplayer",new mejs.MediaElementPlayer(this,t))}),this},n(document).ready(function(){n(".mejs-player").mediaelementplayer()}));window.MediaElementPlayer=mejs.MediaElementPlayer}(mejs.$),function(n){n.extend(mejs.MepDefaults,{playText:mejs.i18n.t("Play"),pauseText:mejs.i18n.t("Pause")});n.extend(MediaElementPlayer.prototype,{buildplaypause:function(t,i,r,u){function e(n){"play"===n?(o.removeClass("mejs-play").addClass("mejs-pause"),h.attr({title:f.pauseText,"aria-label":f.pauseText})):(o.removeClass("mejs-pause").addClass("mejs-play"),h.attr({title:f.playText,"aria-label":f.playText}))}var s=this,f=s.options,o=n('<div class="mejs-button mejs-playpause-button mejs-play" ><button type="button" aria-controls="'+s.id+'" title="'+f.playText+'" aria-label="'+f.playText+'"><\/button><\/div>').appendTo(i).click(function(n){return n.preventDefault(),u.paused?u.play():u.pause(),!1}),h=o.find("button");e("pse");u.addEventListener("play",function(){e("play")},!1);u.addEventListener("playing",function(){e("play")},!1);u.addEventListener("pause",function(){e("pse")},!1);u.addEventListener("paused",function(){e("pse")},!1)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{stopText:"Stop"});n.extend(MediaElementPlayer.prototype,{buildstop:function(t,i,r,u){var f=this;n('<div class="mejs-button mejs-stop-button mejs-stop"><button type="button" aria-controls="'+f.id+'" title="'+f.options.stopText+'" aria-label="'+f.options.stopText+'"><\/button><\/div>').appendTo(i).click(function(){u.paused||u.pause();u.currentTime>0&&(u.setCurrentTime(0),u.pause(),i.find(".mejs-time-current").width("0px"),i.find(".mejs-time-handle").css("left","0px"),i.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0)),i.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0)),r.find(".mejs-poster").show())})}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{progessHelpText:mejs.i18n.t("Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.")});n.extend(MediaElementPlayer.prototype,{buildprogress:function(t,i,r,u){n('<div class="mejs-time-rail"><a href="javascript:void(0);" class="mejs-time-total mejs-time-slider"><span class="mejs-offscreen">'+this.options.progessHelpText+'<\/span><span class="mejs-time-buffering"><\/span><span class="mejs-time-loaded"><\/span><span class="mejs-time-current"><\/span><span class="mejs-time-handle"><\/span><span class="mejs-time-float"><span class="mejs-time-float-current">00:00<\/span><span class="mejs-time-float-corner"><\/span><\/span><\/a><\/div>').appendTo(i);i.find(".mejs-time-buffering").hide();var f=this,o=i.find(".mejs-time-total"),y=i.find(".mejs-time-loaded"),p=i.find(".mejs-time-current"),w=i.find(".mejs-time-handle"),e=i.find(".mejs-time-float"),b=i.find(".mejs-time-float-current"),s=i.find(".mejs-time-slider"),c=function(n){var t,i=o.offset(),f=o.outerWidth(!0),s=0,r=0,c=0;t=n.originalEvent.changedTouches?n.originalEvent.changedTouches[0].pageX:n.pageX;u.duration&&(t<i.left?t=i.left:t>f+i.left&&(t=f+i.left),c=t-i.left,s=c/f,r=.02>=s?0:s*u.duration,h&&r!==u.currentTime&&u.setCurrentTime(r),mejs.MediaFeatures.hasTouch||(e.css("left",c),b.html(mejs.Utility.secondsToTimeCode(r)),e.show()))},h=!1,v=!1,l=0,a=!1,k=t.options.autoRewind,d=function(){var n=u.currentTime,t=mejs.i18n.t("Time Slider"),i=mejs.Utility.secondsToTimeCode(n),r=u.duration;s.attr({"aria-label":t,"aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":n,"aria-valuetext":i,role:"slider",tabindex:0})},g=function(){var n=new Date;n-l>=1e3&&u.play()};s.bind("focus",function(){t.options.autoRewind=!1});s.bind("blur",function(){t.options.autoRewind=k});s.bind("keydown",function(n){new Date-l>=1e3&&(a=u.paused);var r=n.keyCode,i=u.duration,t=u.currentTime;switch(r){case 37:t-=1;break;case 39:t+=1;break;case 38:t+=Math.floor(.1*i);break;case 40:t-=Math.floor(.1*i);break;case 36:t=0;break;case 35:t=i;break;case 10:return void(u.paused?u.play():u.pause());case 13:return void(u.paused?u.play():u.pause());default:return}return t=0>t?0:t>=i?i:Math.floor(t),l=new Date,a||u.pause(),t<u.duration&&!a&&setTimeout(g,1100),u.setCurrentTime(t),n.preventDefault(),n.stopPropagation(),!1});o.bind("mousedown touchstart",function(n){(1===n.which||0===n.which)&&(h=!0,c(n),f.globalBind("mousemove.dur touchmove.dur",function(n){c(n)}),f.globalBind("mouseup.dur touchend.dur",function(){h=!1;e.hide();f.globalUnbind(".dur")}))}).bind("mouseenter",function(){v=!0;f.globalBind("mousemove.dur",function(n){c(n)});mejs.MediaFeatures.hasTouch||e.show()}).bind("mouseleave",function(){v=!1;h||(f.globalUnbind(".dur"),e.hide())});u.addEventListener("progress",function(n){t.setProgressRail(n);t.setCurrentRail(n)},!1);u.addEventListener("timeupdate",function(n){t.setProgressRail(n);t.setCurrentRail(n);d(n)},!1);f.loaded=y;f.total=o;f.current=p;f.handle=w},setProgressRail:function(n){var r=this,t=void 0!==n?n.target:r.media,i=null;t&&t.buffered&&t.buffered.length>0&&t.buffered.end&&t.duration?i=t.buffered.end(0)/t.duration:t&&void 0!==t.bytesTotal&&t.bytesTotal>0&&void 0!==t.bufferedBytes?i=t.bufferedBytes/t.bytesTotal:n&&n.lengthComputable&&0!==n.total&&(i=n.loaded/n.total);null!==i&&(i=Math.min(1,Math.max(0,i)),r.loaded&&r.total&&r.loaded.width(r.total.width()*i))},setCurrentRail:function(){var n=this,t,i;void 0!==n.media.currentTime&&n.media.duration&&n.total&&n.handle&&(t=Math.round(n.total.width()*n.media.currentTime/n.media.duration),i=t-Math.round(n.handle.outerWidth(!0)/2),n.current.width(t),n.handle.css("left",i))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:"<span> | <\/span>"});n.extend(MediaElementPlayer.prototype,{buildcurrent:function(t,i,r,u){var f=this;n('<div class="mejs-time" role="timer" aria-live="off"><span class="mejs-currenttime">'+(t.options.alwaysShowHours?"00:":"")+(t.options.showTimecodeFrameCount?"00:00:00":"00:00")+"<\/span><\/div>").appendTo(i);f.currenttime=f.controls.find(".mejs-currenttime");u.addEventListener("timeupdate",function(){t.updateCurrent()},!1)},buildduration:function(t,i,r,u){var f=this;i.children().last().find(".mejs-currenttime").length>0?n(f.options.timeAndDurationSeparator+'<span class="mejs-duration">'+(f.options.duration>0?mejs.Utility.secondsToTimeCode(f.options.duration,f.options.alwaysShowHours||f.media.duration>3600,f.options.showTimecodeFrameCount,f.options.framesPerSecond||25):(t.options.alwaysShowHours?"00:":"")+(t.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"<\/span>").appendTo(i.find(".mejs-time")):(i.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container"),n('<div class="mejs-time mejs-duration-container"><span class="mejs-duration">'+(f.options.duration>0?mejs.Utility.secondsToTimeCode(f.options.duration,f.options.alwaysShowHours||f.media.duration>3600,f.options.showTimecodeFrameCount,f.options.framesPerSecond||25):(t.options.alwaysShowHours?"00:":"")+(t.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"<\/span><\/div>").appendTo(i));f.durationD=f.controls.find(".mejs-duration");u.addEventListener("timeupdate",function(){t.updateDuration()},!1)},updateCurrent:function(){var n=this;n.currenttime&&n.currenttime.html(mejs.Utility.secondsToTimeCode(n.media.currentTime,n.options.alwaysShowHours||n.media.duration>3600,n.options.showTimecodeFrameCount,n.options.framesPerSecond||25))},updateDuration:function(){var n=this;n.container.toggleClass("mejs-long-video",n.media.duration>3600);n.durationD&&(n.options.duration>0||n.media.duration)&&n.durationD.html(mejs.Utility.secondsToTimeCode(n.options.duration>0?n.options.duration:n.media.duration,n.options.alwaysShowHours,n.options.showTimecodeFrameCount,n.options.framesPerSecond||25))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("Mute Toggle"),allyVolumeControlText:mejs.i18n.t("Use Up/Down Arrow keys to increase or decrease volume."),hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical"});n.extend(MediaElementPlayer.prototype,{buildvolume:function(t,i,r,u){var w;if(!mejs.MediaFeatures.isAndroid&&!mejs.MediaFeatures.isiOS||!this.options.hideVolumeOnTouchDevices){var f=this,c=f.isVideo?f.options.videoVolume:f.options.audioVolume,o="horizontal"==c?n('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+f.id+'" title="'+f.options.muteText+'" aria-label="'+f.options.muteText+'"><\/button><\/div><a href="javascript:void(0);" class="mejs-horizontal-volume-slider"><span class="mejs-offscreen">'+f.options.allyVolumeControlText+'<\/span><div class="mejs-horizontal-volume-total"><\/div><div class="mejs-horizontal-volume-current"><\/div><div class="mejs-horizontal-volume-handle"><\/div><\/a>').appendTo(i):n('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+f.id+'" title="'+f.options.muteText+'" aria-label="'+f.options.muteText+'"><\/button><a href="javascript:void(0);" class="mejs-volume-slider"><span class="mejs-offscreen">'+f.options.allyVolumeControlText+'<\/span><div class="mejs-volume-total"><\/div><div class="mejs-volume-current"><\/div><div class="mejs-volume-handle"><\/div><\/a><\/div>').appendTo(i),e=f.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),s=f.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),y=f.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),a=f.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),h=function(n,t){var i,r,u,l,f;if(!e.is(":visible")&&"undefined"==typeof t)return e.show(),h(n,!0),void e.hide();n=Math.max(0,n);n=Math.min(n,1);0===n?o.removeClass("mejs-mute").addClass("mejs-unmute"):o.removeClass("mejs-unmute").addClass("mejs-mute");i=s.position();"vertical"==c?(r=s.height(),u=r-r*n,a.css("top",Math.round(i.top+u-a.height()/2)),y.height(r-u),y.css("top",i.top+u)):(l=s.width(),f=l*n,a.css("left",Math.round(i.left+f-a.width()/2)),y.width(Math.round(f)))},p=function(n){var t=null,i=s.offset(),r,f,e,o;if("vertical"===c){if(r=s.height(),f=(parseInt(s.css("top").replace(/px/,""),10),n.pageY-i.top),t=(r-f)/r,0===i.top||0===i.left)return}else e=s.width(),o=n.pageX-i.left,t=o/e;t=Math.max(0,t);t=Math.min(t,1);h(t);u.setMuted(0===t?!0:!1);u.setVolume(t)},l=!1,v=!1;o.hover(function(){e.show();v=!0},function(){v=!1;l||"vertical"!=c||e.hide()});w=function(){var n=Math.floor(100*u.volume);e.attr({"aria-label":mejs.i18n.t("volumeSlider"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,"aria-valuetext":n+"%",role:"slider",tabindex:0})};e.bind("mouseover",function(){v=!0}).bind("mousedown",function(n){return p(n),f.globalBind("mousemove.vol",function(n){p(n)}),f.globalBind("mouseup.vol",function(){l=!1;f.globalUnbind(".vol");v||"vertical"!=c||e.hide()}),l=!0,!1}).bind("keydown",function(n){var i=n.keyCode,t=u.volume;switch(i){case 38:t+=.1;break;case 40:t-=.1;break;default:return!0}return l=!1,h(t),u.setVolume(t),!1}).bind("blur",function(){e.hide()});o.find("button").click(function(){u.setMuted(!u.muted)});o.find("button").bind("focus",function(){e.show()});u.addEventListener("volumechange",function(n){l||(u.muted?(h(0),o.removeClass("mejs-mute").addClass("mejs-unmute")):(h(u.volume),o.removeClass("mejs-unmute").addClass("mejs-mute")));w(n)},!1);f.container.is(":visible")&&(h(t.options.startVolume),0===t.options.startVolume&&u.setMuted(!0),"native"===u.pluginType&&u.setVolume(t.options.startVolume))}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{usePluginFullScreen:!0,newWindowCallback:function(){return""},fullscreenText:mejs.i18n.t("Fullscreen")});n.extend(MediaElementPlayer.prototype,{isFullScreen:!1,isNativeFullScreen:!1,isInIframe:!1,buildfullscreen:function(t,i,r,u){var l,f,e,s,a;if(t.isVideo){if((t.isInIframe=window.location!=window.parent.location,mejs.MediaFeatures.hasTrueNativeFullScreen)&&(l=function(){t.isFullScreen&&(mejs.MediaFeatures.isFullScreen()?(t.isNativeFullScreen=!0,t.setControlsSize()):(t.isNativeFullScreen=!1,t.exitFullScreen()))},t.globalBind(mejs.MediaFeatures.fullScreenEventName,l)),f=this,e=(t.container,n('<div class="mejs-button mejs-fullscreen-button"><button type="button" aria-controls="'+f.id+'" title="'+f.options.fullscreenText+'" aria-label="'+f.options.fullscreenText+'"><\/button><\/div>').appendTo(i)),"native"!==f.media.pluginType&&(f.options.usePluginFullScreen||mejs.MediaFeatures.isFirefox))if(s=null,a=function(){var t,n=document.createElement("x"),i=document.documentElement,r=window.getComputedStyle;return"pointerEvents"in n.style?(n.style.pointerEvents="auto",n.style.pointerEvents="x",i.appendChild(n),t=r&&"auto"===r(n,"").pointerEvents,i.removeChild(n),!!t):!1}(),a&&!mejs.MediaFeatures.isOpera){var h,v,c=!1,y=function(){if(c){for(var n in o)o[n].hide();e.css("pointer-events","");f.controls.css("pointer-events","");f.media.removeEventListener("click",f.clickToPlayPauseCallback);c=!1}},o={},p=["top","left","right","bottom"],w=function(){var i=e.offset().left-f.container.offset().left,n=e.offset().top-f.container.offset().top,u=e.outerWidth(!0),t=e.outerHeight(!0),r=f.container.width(),s=f.container.height();for(h in o)o[h].css({position:"absolute",top:0,left:0});o.top.width(r).height(n);o.left.width(i).height(t).css({top:n});o.right.width(r-i-u).height(t).css({top:n,left:i+u});o.bottom.width(r).height(s-t-n).css({top:n+t})};for(f.globalBind("resize",function(){w()}),h=0,v=p.length;v>h;h++)o[p[h]]=n('<div class="mejs-fullscreen-hover" />').appendTo(f.container).mouseover(y).hide();e.on("mouseover",function(){if(!f.isFullScreen){var n=e.offset(),i=t.container.offset();u.positionFullscreenButton(n.left-i.left,n.top-i.top,!1);e.css("pointer-events","none");f.controls.css("pointer-events","none");f.media.addEventListener("click",f.clickToPlayPauseCallback);for(h in o)o[h].show();w();c=!0}});u.addEventListener("fullscreenchange",function(){f.isFullScreen=!f.isFullScreen;f.isFullScreen?f.media.removeEventListener("click",f.clickToPlayPauseCallback):f.media.addEventListener("click",f.clickToPlayPauseCallback);y()});f.globalBind("mousemove",function(n){if(c){var t=e.offset();(n.pageY<t.top||n.pageY>t.top+e.outerHeight(!0)||n.pageX<t.left||n.pageX>t.left+e.outerWidth(!0))&&(e.css("pointer-events",""),f.controls.css("pointer-events",""),c=!1)}})}else e.on("mouseover",function(){null!==s&&(clearTimeout(s),delete s);var n=e.offset(),i=t.container.offset();u.positionFullscreenButton(n.left-i.left,n.top-i.top,!0)}).on("mouseout",function(){null!==s&&(clearTimeout(s),delete s);s=setTimeout(function(){u.hideFullscreenButton()},1500)});else e.click(function(){var n=mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||t.isFullScreen;n?t.exitFullScreen():t.enterFullScreen()});t.fullscreenBtn=e;f.globalBind("keydown",function(n){(mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||f.isFullScreen)&&27==n.keyCode&&t.exitFullScreen()})}},cleanfullscreen:function(n){n.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var t=this,i;if("native"===t.media.pluginType||!mejs.MediaFeatures.isFirefox&&!t.options.usePluginFullScreen){if(n(document.documentElement).addClass("mejs-fullscreen"),normalHeight=t.container.height(),normalWidth=t.container.width(),"native"===t.media.pluginType)if(mejs.MediaFeatures.hasTrueNativeFullScreen)mejs.MediaFeatures.requestFullScreen(t.container[0]),t.isInIframe&&setTimeout(function r(){if(t.isNativeFullScreen){var u=window.devicePixelRatio||1,f=u*n(window).width(),i=screen.width,e=Math.abs(i-f),o=i*.002;e>o?t.exitFullScreen():setTimeout(r,500)}},500);else if(mejs.MediaFeatures.hasSemiNativeFullScreen)return void t.media.webkitEnterFullscreen();if(t.isInIframe&&(i=t.options.newWindowCallback(this),""!==i)){if(!mejs.MediaFeatures.hasTrueNativeFullScreen)return t.pause(),void window.open(i,t.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no");setTimeout(function(){t.isNativeFullScreen||(t.pause(),window.open(i,t.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no"))},250)}t.container.addClass("mejs-container-fullscreen").width("100%").height("100%");t.containerSizeTimeout=setTimeout(function(){t.container.css({width:"100%",height:"100%"});t.setControlsSize()},500);"native"===t.media.pluginType?t.$media.width("100%").height("100%"):(t.container.find(".mejs-shim").width("100%").height("100%"),t.media.setVideoSize(n(window).width(),n(window).height()));t.layers.children("div").width("100%").height("100%");t.fullscreenBtn&&t.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen");t.setControlsSize();t.isFullScreen=!0;t.container.find(".mejs-captions-text").css("font-size",screen.width/t.width*100+"%");t.container.find(".mejs-captions-position").css("bottom","45px")}},exitFullScreen:function(){var t=this;return clearTimeout(t.containerSizeTimeout),"native"!==t.media.pluginType&&mejs.MediaFeatures.isFirefox?void t.media.setFullscreen(!1):(mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||t.isFullScreen)&&mejs.MediaFeatures.cancelFullScreen(),n(document.documentElement).removeClass("mejs-fullscreen"),t.container.removeClass("mejs-container-fullscreen").width(normalWidth).height(normalHeight),"native"===t.media.pluginType?t.$media.width(normalWidth).height(normalHeight):(t.container.find(".mejs-shim").width(normalWidth).height(normalHeight),t.media.setVideoSize(normalWidth,normalHeight)),t.layers.children("div").width(normalWidth).height(normalHeight),t.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen"),t.setControlsSize(),t.isFullScreen=!1,t.container.find(".mejs-captions-text").css("font-size",""),void t.container.find(".mejs-captions-position").css("bottom",""))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{speeds:["2.00","1.50","1.25","1.00","0.75"],defaultSpeed:"1.00",speedChar:"x"});n.extend(MediaElementPlayer.prototype,{buildspeed:function(t,i,r,u){var f=this,e,c;if("native"==f.media.pluginType){var o=null,s=null,h='<div class="mejs-button mejs-speed-button"><button type="button">'+f.options.defaultSpeed+f.options.speedChar+'<\/button><div class="mejs-speed-selector"><ul>';for(-1===n.inArray(f.options.defaultSpeed,f.options.speeds)&&f.options.speeds.push(f.options.defaultSpeed),f.options.speeds.sort(function(n,t){return parseFloat(t)-parseFloat(n)}),e=0,c=f.options.speeds.length;c>e;e++)h+='<li><input type="radio" name="speed" value="'+f.options.speeds[e]+'" id="'+f.options.speeds[e]+'" '+(f.options.speeds[e]==f.options.defaultSpeed?" checked":"")+' /><label for="'+f.options.speeds[e]+'" '+(f.options.speeds[e]==f.options.defaultSpeed?' class="mejs-speed-selected"':"")+">"+f.options.speeds[e]+f.options.speedChar+"<\/label><\/li>";h+="<\/ul><\/div><\/div>";o=n(h).appendTo(i);s=o.find(".mejs-speed-selector");playbackspeed=f.options.defaultSpeed;s.on("click",'input[type="radio"]',function(){var t=n(this).attr("value");playbackspeed=t;u.playbackRate=parseFloat(t);o.find("button").html("test"+t+f.options.speedChar);o.find(".mejs-speed-selected").removeClass("mejs-speed-selected");o.find('input[type="radio"]:checked').next().addClass("mejs-speed-selected")});s.height(o.find(".mejs-speed-selector ul").outerHeight(!0)+o.find(".mejs-speed-translations").outerHeight(!0)).css("top",-1*s.height()+"px")}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{startLanguage:"",tracksText:mejs.i18n.t("Captions/Subtitles"),hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""});n.extend(MediaElementPlayer.prototype,{hasChapters:!1,buildtracks:function(t,i,r,u){var f,e,o;if(0!==t.tracks.length){if(e=this,e.domNode.textTracks)for(f=e.domNode.textTracks.length-1;f>=0;f--)e.domNode.textTracks[f].mode="hidden";for(t.chapters=n('<div class="mejs-chapters mejs-layer"><\/div>').prependTo(r).hide(),t.captions=n('<div class="mejs-captions-layer mejs-layer"><div class="mejs-captions-position mejs-captions-position-hover" role="log" aria-live="assertive" aria-atomic="false"><span class="mejs-captions-text"><\/span><\/div><\/div>').prependTo(r).hide(),t.captionsText=t.captions.find(".mejs-captions-text"),t.captionsButton=n('<div class="mejs-button mejs-captions-button"><button type="button" aria-controls="'+e.id+'" title="'+e.options.tracksText+'" aria-label="'+e.options.tracksText+'"><\/button><div class="mejs-captions-selector"><ul><li><input type="radio" name="'+t.id+'_captions" id="'+t.id+'_captions_none" value="none" checked="checked" /><label for="'+t.id+'_captions_none">'+mejs.i18n.t("None")+"<\/label><\/li><\/ul><\/div><\/div>").appendTo(i),o=0,f=0;f<t.tracks.length;f++)"subtitles"==t.tracks[f].kind&&o++;for(e.options.toggleCaptionsButtonWhenOnlyOne&&1==o?t.captionsButton.on("click",function(){lang=null===t.selectedTrack?t.tracks[0].srclang:"none";t.setTrack(lang)}):(t.captionsButton.on("mouseenter focusin",function(){n(this).find(".mejs-captions-selector").css("visibility","visible")}).on("click","input[type=radio]",function(){lang=this.value;t.setTrack(lang)}),t.captionsButton.on("mouseleave focusout",function(){n(this).find(".mejs-captions-selector").css("visibility","hidden")})),t.options.alwaysShowControls?t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover"):t.container.bind("controlsshown",function(){t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}).bind("controlshidden",function(){u.paused||t.container.find(".mejs-captions-position").removeClass("mejs-captions-position-hover")}),t.trackToLoad=-1,t.selectedTrack=null,t.isLoadingTrack=!1,f=0;f<t.tracks.length;f++)"subtitles"==t.tracks[f].kind&&t.addTrackButton(t.tracks[f].srclang,t.tracks[f].label);t.loadNextTrack();u.addEventListener("timeupdate",function(){t.displayCaptions()},!1);""!==t.options.slidesSelector&&(t.slidesContainer=n(t.options.slidesSelector),u.addEventListener("timeupdate",function(){t.displaySlides()},!1));u.addEventListener("loadedmetadata",function(){t.displayChapters()},!1);t.container.hover(function(){t.hasChapters&&(t.chapters.css("visibility","visible"),t.chapters.fadeIn(200).height(t.chapters.find(".mejs-chapter").outerHeight()))},function(){t.hasChapters&&!u.paused&&t.chapters.fadeOut(200,function(){n(this).css("visibility","hidden");n(this).css("display","block")})});null!==t.node.getAttribute("autoplay")&&t.chapters.css("visibility","hidden")}},setTrack:function(n){var i,t=this;if("none"==n)t.selectedTrack=null,t.captionsButton.removeClass("mejs-captions-enabled");else for(i=0;i<t.tracks.length;i++)if(t.tracks[i].srclang==n){null===t.selectedTrack&&t.captionsButton.addClass("mejs-captions-enabled");t.selectedTrack=t.tracks[i];t.captions.attr("lang",t.selectedTrack.srclang);t.displayCaptions();break}},loadNextTrack:function(){var n=this;n.trackToLoad++;n.trackToLoad<n.tracks.length?(n.isLoadingTrack=!0,n.loadTrack(n.trackToLoad)):(n.isLoadingTrack=!1,n.checkForTracks())},loadTrack:function(t){var r=this,i=r.tracks[t],u=function(){i.isLoaded=!0;r.enableTrackButton(i.srclang,i.label);r.loadNextTrack()};n.ajax({url:i.src,dataType:"text",success:function(n){i.entries="string"==typeof n&&/<tt\s+xml/gi.exec(n)?mejs.TrackFormatParser.dfxp.parse(n):mejs.TrackFormatParser.webvtt.parse(n);u();"chapters"==i.kind&&r.media.addEventListener("play",function(){r.media.duration>0&&r.displayChapters(i)},!1);"slides"==i.kind&&r.setupSlides(i)},error:function(){r.loadNextTrack()}})},enableTrackButton:function(t,i){var r=this;""===i&&(i=mejs.language.codes[t]||t);r.captionsButton.find("input[value="+t+"]").prop("disabled",!1).siblings("label").html(i);r.options.startLanguage==t&&n("#"+r.id+"_captions_"+t).prop("checked",!0).trigger("click");r.adjustLanguageBox()},addTrackButton:function(t,i){var r=this;""===i&&(i=mejs.language.codes[t]||t);r.captionsButton.find("ul").append(n('<li><input type="radio" name="'+r.id+'_captions" id="'+r.id+"_captions_"+t+'" value="'+t+'" disabled="disabled" /><label for="'+r.id+"_captions_"+t+'">'+i+" (loading)<\/label><\/li>"));r.adjustLanguageBox();r.container.find(".mejs-captions-translations option[value="+t+"]").remove()},adjustLanguageBox:function(){var n=this;n.captionsButton.find(".mejs-captions-selector").height(n.captionsButton.find(".mejs-captions-selector ul").outerHeight(!0)+n.captionsButton.find(".mejs-captions-translations").outerHeight(!0))},checkForTracks:function(){var n=this,t=!1;if(n.options.hideCaptionsButtonWhenEmpty){for(i=0;i<n.tracks.length;i++)if("subtitles"==n.tracks[i].kind){t=!0;break}t||(n.captionsButton.hide(),n.setControlsSize())}},displayCaptions:function(){if("undefined"!=typeof this.tracks){var n,t=this,i=t.selectedTrack;if(null!==i&&i.isLoaded){for(n=0;n<i.entries.times.length;n++)if(t.media.currentTime>=i.entries.times[n].start&&t.media.currentTime<=i.entries.times[n].stop)return t.captionsText.html(i.entries.text[n]).attr("class","mejs-captions-text "+(i.entries.times[n].identifier||"")),void t.captions.show().height(0);t.captions.hide()}else t.captions.hide()}},setupSlides:function(n){var t=this;t.slides=n;t.slides.entries.imgs=[t.slides.entries.text.length];t.showSlide(0)},showSlide:function(t){if("undefined"!=typeof this.tracks&&"undefined"!=typeof this.slidesContainer){var r=this,u=r.slides.entries.text[t],i=r.slides.entries.imgs[t];"undefined"==typeof i||"undefined"==typeof i.fadeIn?r.slides.entries.imgs[t]=i=n('<img src="'+u+'">').on("load",function(){i.appendTo(r.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()}):i.is(":visible")||i.is(":animated")||i.fadeIn().siblings(":visible").fadeOut()}},displaySlides:function(){if("undefined"!=typeof this.slides)for(var t=this,i=t.slides,n=0;n<i.entries.times.length;n++)if(t.media.currentTime>=i.entries.times[n].start&&t.media.currentTime<=i.entries.times[n].stop)return void t.showSlide(n)},displayChapters:function(){for(var t=this,n=0;n<t.tracks.length;n++)if("chapters"==t.tracks[n].kind&&t.tracks[n].isLoaded){t.drawChapters(t.tracks[n]);t.hasChapters=!0;break}},drawChapters:function(t){var i,e,r=this,u=0,f=0;for(r.chapters.empty(),i=0;i<t.entries.times.length;i++)e=t.entries.times[i].stop-t.entries.times[i].start,u=Math.floor(e/r.media.duration*100),(u+f>100||i==t.entries.times.length-1&&100>u+f)&&(u=100-f),r.chapters.append(n('<div class="mejs-chapter" rel="'+t.entries.times[i].start+'" style="left: '+f.toString()+"%;width: "+u.toString()+'%;"><div class="mejs-chapter-block'+(i==t.entries.times.length-1?" mejs-chapter-block-last":"")+'"><span class="ch-title">'+t.entries.text[i]+'<\/span><span class="ch-time">'+mejs.Utility.secondsToTimeCode(t.entries.times[i].start)+"&ndash;"+mejs.Utility.secondsToTimeCode(t.entries.times[i].stop)+"<\/span><\/div><\/div>")),f+=u;r.chapters.find("div.mejs-chapter").click(function(){r.media.setCurrentTime(parseFloat(n(this).attr("rel")));r.media.paused&&r.media.play()});r.chapters.show()}});mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}};mejs.TrackFormatParser={webvtt:{pattern_timecode:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(t){for(var u,f,e,i=0,r=mejs.TrackFormatParser.split2(t,/\r?\n/),o={text:[],times:[]};i<r.length;i++){if(u=this.pattern_timecode.exec(r[i]),u&&i<r.length){for(i-1>=0&&""!==r[i-1]&&(e=r[i-1]),i++,f=r[i],i++;""!==r[i]&&i<r.length;)f=f+"\n"+r[i],i++;f=n.trim(f).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1<\/a>");o.text.push(f);o.times.push({identifier:e,start:0===mejs.Utility.convertSMPTEtoSeconds(u[1])?.2:mejs.Utility.convertSMPTEtoSeconds(u[1]),stop:mejs.Utility.convertSMPTEtoSeconds(u[3]),settings:u[5]})}e=""}return o}},dfxp:{parse:function(t){var o,s,r,h;t=n(t).filter("tt");var f,c,i=0,l=t.children("div").eq(0),u=l.find("p"),a=t.find("#"+l.attr("style")),e={text:[],times:[]};if(a.length&&(o=a.removeAttr("id").get(0).attributes,o.length))for(f={},i=0;i<o.length;i++)f[o[i].name.split(":")[1]]=o[i].value;for(i=0;i<u.length;i++){if(r={start:null,stop:null,style:null},u.eq(i).attr("begin")&&(r.start=mejs.Utility.convertSMPTEtoSeconds(u.eq(i).attr("begin"))),!r.start&&u.eq(i-1).attr("end")&&(r.start=mejs.Utility.convertSMPTEtoSeconds(u.eq(i-1).attr("end"))),u.eq(i).attr("end")&&(r.stop=mejs.Utility.convertSMPTEtoSeconds(u.eq(i).attr("end"))),!r.stop&&u.eq(i+1).attr("begin")&&(r.stop=mejs.Utility.convertSMPTEtoSeconds(u.eq(i+1).attr("begin"))),f){s="";for(h in f)s+=h+":"+f[h]+";"}s&&(r.style=s);0===r.start&&(r.start=.2);e.times.push(r);c=n.trim(u.eq(i).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1<\/a>");e.text.push(c);0===e.times.start&&(e.times.start=2)}return e}},split2:function(n,t){return n.split(t)}};3!="x\n\ny".split(/\n/gi).length&&(mejs.TrackFormatParser.split2=function(n,t){for(var u=[],r="",i=0;i<n.length;i++)r+=n.substring(i,i+1),t.test(r)&&(u.push(r.replace(t,"")),r="");return u.push(r),u})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(n){return"undefined"==typeof n.enterFullScreen?null:mejs.i18n.t(n.isFullScreen?"Turn off Fullscreen":"Go Fullscreen")},click:function(n){n.isFullScreen?n.exitFullScreen():n.enterFullScreen()}},{render:function(n){return mejs.i18n.t(n.media.muted?"Unmute":"Mute")},click:function(n){n.setMuted(n.media.muted?!1:!0)}},{isSeparator:!0},{render:function(){return mejs.i18n.t("Download Video")},click:function(n){window.location.href=n.media.currentSrc}}]});n.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(t){t.contextMenu=n('<div class="mejs-contextmenu"><\/div>').appendTo(n("body")).hide();t.container.bind("contextmenu",function(n){if(t.isContextMenuEnabled)return(n.preventDefault(),t.renderContextMenu(n.clientX-1,n.clientY-1),!1)});t.container.bind("click",function(){t.contextMenu.hide()});t.contextMenu.bind("mouseleave",function(){t.startContextMenuTimer()})},cleancontextmenu:function(n){n.contextMenu.remove()},isContextMenuEnabled:!0,enableContextMenu:function(){this.isContextMenuEnabled=!0},disableContextMenu:function(){this.isContextMenuEnabled=!1},contextMenuTimeout:null,startContextMenuTimer:function(){var n=this;n.killContextMenuTimer();n.contextMenuTimer=setTimeout(function(){n.hideContextMenu();n.killContextMenuTimer()},750)},killContextMenuTimer:function(){var n=this.contextMenuTimer;null!=n&&(clearTimeout(n),delete n,n=null)},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(t,i){for(var o,r=this,f="",e=r.options.contextMenuItems,u=0,s=e.length;s>u;u++)e[u].isSeparator?f+='<div class="mejs-contextmenu-separator"><\/div>':(o=e[u].render(r),null!=o&&(f+='<div class="mejs-contextmenu-item" data-itemindex="'+u+'" id="element-'+1e6*Math.random()+'">'+o+"<\/div>"));r.contextMenu.empty().append(n(f)).css({top:i,left:t}).show();r.contextMenu.find(".mejs-contextmenu-item").each(function(){var i=n(this),u=parseInt(i.data("itemindex"),10),t=r.options.contextMenuItems[u];"undefined"!=typeof t.show&&t.show(i,r);i.click(function(){"undefined"!=typeof t.click&&t.click(r);r.contextMenu.hide()})});setTimeout(function(){r.killControlsTimer("rev3")},100)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t("Close")});n.extend(MediaElementPlayer.prototype,{buildpostroll:function(t,i,r){var u=this,f=u.container.find('link[rel="postroll"]').attr("href");"undefined"!=typeof f&&(t.postroll=n('<div class="mejs-postroll-layer mejs-layer"><a class="mejs-postroll-close" onclick="$(this).parent().hide();return false;">'+u.options.postrollCloseText+'<\/a><div class="mejs-postroll-layer-content"><\/div><\/div>').prependTo(r).hide(),u.media.addEventListener("ended",function(){n.ajax({dataType:"html",url:f,success:function(n){r.find(".mejs-postroll-layer-content").html(n)}});t.postroll.show()},!1))}})}(mejs.$),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)===undefined?!1:(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}}),function(n){var t=!1,r,i;typeof define=="function"&&define.amd&&(define(n),t=!0);typeof exports=="object"&&(module.exports=n(),t=!0);t||(r=window.Cookies,i=window.Cookies=n(),i.noConflict=function(){return window.Cookies=r,i})}(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(i){function r(t,u,f){var o,h,l,e,s;if(typeof document!="undefined"){if(arguments.length>1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(h=new Date,h.setMilliseconds(h.getMilliseconds()+f.expires*864e5),f.expires=h);try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(y){}return u=i.write?i.write(u,t):encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",u,f.expires?"; expires="+f.expires.toUTCString():"",f.path?"; path="+f.path:"",f.domain?"; domain="+f.domain:"",f.secure?"; secure":""].join("")}t||(o={});for(var a=document.cookie?document.cookie.split("; "):[],v=/(%[0-9A-Z]{2})+/g,c=0;c<a.length;c++){l=a[c].split("=");e=l.slice(1).join("=");e.charAt(0)==='"'&&(e=e.slice(1,-1));try{if(s=l[0].replace(v,decodeURIComponent),e=i.read?i.read(e,s):i(e,s)||e.replace(v,decodeURIComponent),this.json)try{e=JSON.parse(e)}catch(y){}if(t===s){o=e;break}t||(o[s]=e)}catch(y){}}return o}}return r.set=r,r.get=function(n){return r.call(r,n)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.withConverter=t,r}return t(function(){})});(typeof Globals=="undefined"||Globals===null)&&(Globals={});Globals.Cookies={exists:function(n){return!Globals.Utilities.isUndefinedOrNull(Cookies.get(n))},createCookie:function(n,t,i){var r=0,u=!1,f=!1,e="/",o;Globals.Utilities.isUndefinedOrNull(i)||(Globals.Utilities.isUndefinedOrNull(i.IsPersistent)||(u=i.IsPersistent),Globals.Utilities.isUndefinedOrNull(i.Path)||(e=i.Path),u&&(r=365,Globals.Utilities.isUndefinedOrNull(i.NumberOfDays)||(r=i.NumberOfDays)),Globals.Utilities.isUndefinedOrNull(i.IsSecure)||(f=i.IsSecure));o={expires:r,secure:f,path:e};Cookies.set(n,t,o)},readCookie:function(n,t){var r,i;return Globals.Cookies.exists(n)&&(i=!0,Globals.Utilities.isUndefinedOrNull(t)||(i=t),r=i?Globals.Cookies.getParsedCookieData(n):Globals.Cookies.getStringifiedCookieData(n)),r},getParsedCookieData:function(n){var t=Cookies.getJSON(n);if(!Globals.Utilities.isUndefinedOrNull(t))return t},getStringifiedCookieData:function(n){var t=Cookies.get(n);if(!Globals.Utilities.isUndefinedOrNull(t))return t},deleteCookie:function(n,t){var i,r;Globals.Cookies.exists(n)&&(i="/",Globals.Utilities.isUndefinedOrNull(t)||(i=t),r={path:i},Cookies.remove(n,r))}};(typeof KnotiaInsights=="undefined"||KnotiaInsights===null)&&(KnotiaInsights={});KnotiaInsights.Tracker=function(){this.LocalStorageKeyPrefix="KnotiaInsights_";this.Tracker=0;this.MaxNumHoursToConsider=8;this.SavingIntervalPeriod=12e4;this.LocalStorageIsAvailable=!1;this.KnotiaInsightsLocalStorageKeys=[];this.FetchIDTextBoxID=""};Globals.Utilities.isUndefinedOrNull(document.KnotiaInsightsTracker)&&(document.KnotiaInsightsTracker=new KnotiaInsights.Tracker);KnotiaInsights.Tracker.prototype.enableTracker=function(){var n=Globals.Utilities.getMeContext("KnotiaInsightsTracker");document.addEventListener?document.addEventListener("click",function(n){Promise.resolve().then(function(){document.KnotiaInsightsTracker.logActivity(n)})}):document.attachEvent&&document.attachEvent("onclick",function(){document.KnotiaInsightsTracker.logActivity(event)})};KnotiaInsights.Tracker.prototype.logActivity=function(n){var r=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),t=n.target||n.srcElement,k=t.tagName.toLowerCase(),u,f,s,i,h,w,c,b;if(k==="a"&&(u=r.logThisEvent(t),u[0]&&(f=u[1],typeof glb_SiteElementsToTrack[f]!="undefined"))){var l=glb_SiteElementsToTrack[f],e=l.LogEntryName,o=l.TextElementID,a=new Date,d=Globals.Date.toYYYYMMDDHHMMTT(a),g=a.toISOString(),v=Globals.Utilities.generateGUID(),y=window.location.href,p=$('#divBodyContent P.medium span.graymedium:contains("Document ID:")');p!==null&&(s=p.text().replace("Document ID:","").trim(),s.trim().length>0&&(y=s));i={};h=t.text.trim();o.length>0&&(w=$("#"+o),Globals.Utilities.isUndefinedOrNull(w.val())||(h=$("#"+o).val().trim()));i[e]={EventID:v,Link:t.href.toLowerCase().trim(),Text:h,DateAccessed:d,Page:y};typeof $(t).attr("type")!="undefined"&&(i[e].Type=$(t).attr("type").trim());typeof $(t).attr("group")!="undefined"&&(i[e].Group=$(t).attr("group").trim());c=JSON.stringify(i);r.LocalStorageIsAvailable?(b=r.LocalStorageKeyPrefix+v+"_"+g,window.localStorage.setItem(b,c)):r.SaveClickedItemDetails(c);return}};KnotiaInsights.Tracker.prototype.logThisEvent=function(n){var o=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),i=!1,e=n.tagName.toLowerCase(),r="",t,u,f;if(e==="a")for(t in glb_SiteElementsToTrack)u=$(n).hasClass(t),f=$(n).closest("div."+t).length>0,(u||f)&&(r=t,i=!0);return[i,r]};KnotiaInsights.Tracker.prototype.checkIfReactReduxEventShouldBeLogged=function(n){return glb_EnableSiteTracking&&!Globals.Utilities.isUndefinedOrNull(glb_SiteElementsToTrackByLogEntryName[n])?!0:!1};KnotiaInsights.Tracker.prototype.logReactReduxEvent=function(n){var t,i,r;try{if(t=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),i=n.eventType,!t.checkIfReactReduxEventShouldBeLogged(i))return;r=t.getBaseEventObject(n);t.SaveEventObject(i,r)}catch(u){}};KnotiaInsights.Tracker.prototype.getBaseEventObject=function(n){var t=Globals.Utilities.generateGUID(),i=window.location.href;return{EventID:t,Data:n,DateAccessed:null,Page:i}};KnotiaInsights.Tracker.prototype.SaveEventObject=function(n,t){var i=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),f=new Date,o=f.toISOString(),r,u,e;t.DateAccessed=Globals.Date.toYYYYMMDDHHMMTT(f);r={};r.FeatureTracking=t;u=JSON.stringify(r);i.LocalStorageIsAvailable?(e=i.LocalStorageKeyPrefix+t.EventID+"_"+o,window.localStorage.setItem(e,u)):i.SaveClickedItemDetails(u)};KnotiaInsights.Tracker.prototype.SaveClickedItemDetailsToLocalStorage=function(){var n,t,f;if(!window.location.href.toLowerCase().includes("login")&&(n=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),window.localStorage.length>0)){for(var i=[],r=Object.keys(window.localStorage),u=r.length;u--;)t=r[u],t.indexOf(n.LocalStorageKeyPrefix)===0&&(f=t.split("_")[2],n.discardItemLogged(f)||(n.KnotiaInsightsLocalStorageKeys[n.KnotiaInsightsLocalStorageKeys.length]=t,i[i.length]=window.localStorage.getItem(t)));n.KnotiaInsightsLocalStorageKeys.length>0&&n.SaveClickedItemDetails(i)}};KnotiaInsights.Tracker.prototype.SaveClickedItemDetail=function(n,t){var r=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),i={};i[n]={EventID:Globals.Utilities.generateGUID(),Text:t};r.SaveClickedItemDetails(JSON.stringify(i))};KnotiaInsights.Tracker.prototype.SaveClickedItemDetails=function(n){var t=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),i=n,r;typeof n!="string"&&(i=n.join("|"));r={ClickedItemDetails:i};Globals.Ajax.postRequest("/Services/KnotiaInsightsService.svc/SaveClickedItemDetails",r,t.successfulLogging,t.failedDisplayGrid,"SaveClickedItemDetails")};KnotiaInsights.Tracker.prototype.removeFromLocalStorage=function(n){for(var i=n.length,t=0;t<i;t++)window.localStorage.removeItem(n[t])};KnotiaInsights.Tracker.prototype.successfulLogging=function(){var n=Globals.Utilities.getMeContext("KnotiaInsightsTracker");n.LocalStorageIsAvailable&&n.KnotiaInsightsLocalStorageKeys.length>0&&n.removeFromLocalStorage(n.KnotiaInsightsLocalStorageKeys);return};KnotiaInsights.Tracker.prototype.failedLogging=function(){return};KnotiaInsights.Tracker.prototype.discardItemLogged=function(n){var t=Globals.Utilities.getMeContext("KnotiaInsightsTracker"),i=new Date,r=new Date(n),u=Math.abs(i.getTime()-r.getTime()),f=parseInt(u/36e5%24);return f<=t.MaxNumHoursToConsider?!1:!0};KnotiaInsights.Tracker.prototype.isSupported=function(){try{var n=window.localStorage;const t=Globals.Utilities.generateGUID();return n.setItem(t,t),n.removeItem(t),!0}catch(t){return!1}};KnotiaInsights.Tracker.prototype.initializeGlobalSiteElementsToTrackByLogEntryName=function(){var t,n;if(window.glb_SiteElementsToTrackByLogEntryName={},!Globals.Utilities.isUndefinedOrNull(window.glb_SiteElementsToTrack)){for(t in glb_SiteElementsToTrack)n=glb_SiteElementsToTrack[t],!Globals.Utilities.isUndefinedOrNull(n)&&!Globals.Utilities.isUndefinedOrNull(n.LogEntryName)&&n.LogEntryName.length>0&&(glb_SiteElementsToTrackByLogEntryName[n.LogEntryName]=n);return}};KnotiaInsights.Tracker.prototype.initializeSessionTracker=function(){var n=Globals.Utilities.getMeContext("KnotiaInsightsTracker");typeof glb_EnableSiteTracking!="undefined"&&glb_EnableSiteTracking===1&&(n.initializeGlobalSiteElementsToTrackByLogEntryName(),n.enableTracker(),n.LocalStorageIsAvailable=n.isSupported(),n.LocalStorageIsAvailable&&(window.onbeforeunload=function(){n.SaveClickedItemDetailsToLocalStorage()},window.setInterval(function(){n.SaveClickedItemDetailsToLocalStorage()},n.SavingIntervalPeriod)))};window.glb_EnableKnotiaNext!=null&&(glb_EnableKnotiaNext===0||glb_EnableResearchUX===0)&&document.addEventListener("DOMContentLoaded",function(){var n=Globals.Utilities.getMeContext("KnotiaInsightsTracker");n.initializeSessionTracker()})