function initMediaPlayers(){$(document).find("audio,video").each(function(){var n=this;$(n).mediaelementplayer({enablePluginDebug:!1,audioWidth:300,pauseOtherPlayers:!0,alwaysShowControls:!0,features:["playpause","progress","current","volume"],startVolume:.2})});brightcove.createExperiences()}function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(n){mejs.YouTubeApi.flashReady(n)}$(document).ready(function(){if($(".met-media-player")&&$(".met-media-player").length>0){$(".met-media-player").removeAttr("style");var n=0;$(".met-media-player").each(function(){var t=this,r=$(this).data("metmediaplayer"),u=$(this).data("brightcoveid"),f=$(this).data("title"),i=$(this).data("width"),e=$(this).data("height");$(".met-media-player").css("width","100%");$(".met-media-player").css("max-width",i);$.ajax({url:"/Resources/Controls/MetPlayer",data:{MetMediaType:r,BrightcoveId:u,Title:f,Width:i,Height:e},cache:!1,success:function(i){$(t).html(i);n++;n==$(".met-media-player").size()&&jQuery.getScript("https://admin.brightcove.com/js/BrightcoveExperiences.js",function(){$(t).bind("load",initMediaPlayers())})}})})}});var mejs=mejs||{};mejs.version="2.15.1";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 u=0,t,f="",r="",i,e,o=document.getElementsByTagName("script"),s=o.length,h=n.length;u<s;u++){for(i=o[u].src,t=i.lastIndexOf("/"),t>-1?(e=i.substring(t+1),i=i.substring(0,t+1)):(e=i,i=""),t=0;t<h;t++)if(r=n[t],r=e.indexOf(r),r>-1){f=i;break}if(f!=="")break}return f},secondsToTimeCode:function(n,t,i,r){typeof i=="undefined"?i=!1:typeof r=="undefined"&&(r=25);var u=Math.floor(n/3600)%24,f=Math.floor(n/60)%60,e=Math.floor(n%60);return n=Math.floor((n%1*r).toFixed(3)),(t||u>0?(u<10?"0"+u:u)+":":"")+(f<10?"0"+f:f)+":"+(e<10?"0"+e:e)+(i?":"+(n<10?"0"+n:n):"")},timeCodeToSeconds:function(n,t,i,r){typeof i=="undefined"?i=!1:typeof r=="undefined"&&(r=25);n=n.split(":");t=parseInt(n[0],10);var f=parseInt(n[1],10),e=parseInt(n[2],10),u=0;return i&&(u=parseInt(n[3])/r),t*3600+f*60+e+u},convertSMPTEtoSeconds:function(n){var t;if(typeof n!="string")return!1;n=n.replace(",",".");var r=0,u=n.indexOf(".")!=-1?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(){t.readyState==4?mejs.Utility.removeObjectInIE(n):setTimeout(arguments.callee,10)}()):t.parentNode.removeChild(t))},removeObjectInIE:function(n){if(n=document.getElementById(n)){for(var t in n)typeof n[t]=="function"&&(n[t]=null);n.parentNode.removeChild(n)}}};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 u=[0,0,0],f;if(typeof this.nav.plugins!="undefined"&&typeof this.nav.plugins[n]=="object"){if((i=this.nav.plugins[n].description)&&!(typeof this.nav.mimeTypes!="undefined"&&this.nav.mimeTypes[t]&&!this.nav.mimeTypes[t].enabledPlugin))for(u=i.replace(n,"").replace(/^\s+/,"").replace(/\sr/gi,".").split("."),n=0;n<u.length;n++)u[n]=parseInt(u[n].match(/\d+/),10)}else if(typeof window.ActiveXObject!="undefined")try{(f=new ActiveXObject(i))&&(u=r(f))}catch(e){}return u}};mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(n){var t=[];return(n=n.GetVariable("$version"))&&(n=n.split(" ")[1].split(","),t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]),t});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 n=this,u=document,r=mejs.PluginDetector.nav,t=mejs.PluginDetector.ua.toLowerCase(),i,f=["source","track","audio","video"];for(n.isiPad=t.match(/ipad/i)!==null,n.isiPhone=t.match(/iphone/i)!==null,n.isiOS=n.isiPhone||n.isiPad,n.isAndroid=t.match(/android/i)!==null,n.isBustedAndroid=t.match(/android 2\.[12]/)!==null,n.isBustedNativeHTTPS=location.protocol==="https:"&&(t.match(/android [12]\./)!==null||t.match(/macintosh.* version.* safari/)!==null),n.isIE=r.appName.toLowerCase().indexOf("microsoft")!=-1||r.appName.toLowerCase().match(/trident/gi)!==null,n.isChrome=t.match(/chrome/gi)!==null,n.isChromium=t.match(/chromium/gi)!==null,n.isFirefox=t.match(/firefox/gi)!==null,n.isWebkit=t.match(/webkit/gi)!==null,n.isGecko=t.match(/gecko/gi)!==null&&!n.isWebkit&&!n.isIE,n.isOpera=t.match(/opera/gi)!==null,n.hasTouch=("ontouchstart"in window),n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r=0;r<f.length;r++)i=document.createElement(f[r]);n.supportsMediaTag=typeof i.canPlayType!="undefined"||n.isBustedAndroid;try{i.canPlayType("video/mp4")}catch(e){n.supportsMediaTag=!1}n.hasSemiNativeFullScreen=typeof i.webkitEnterFullscreen!="undefined";n.hasNativeFullscreen=typeof i.requestFullscreen!="undefined";n.hasWebkitNativeFullScreen=typeof i.webkitRequestFullScreen!="undefined";n.hasMozNativeFullScreen=typeof i.mozRequestFullScreen!="undefined";n.hasMsNativeFullScreen=typeof i.msRequestFullscreen!="undefined";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?u.msFullscreenElement!==null: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 i,t=this.getElementsByTagName("source");t.length>0;)this.removeChild(t[0]);if(typeof n=="string")this.src=n;else for(t=0;t<n.length;t++)if(i=n[t],this.canPlayType(i.type)){this.src=i.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(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?this.pluginApi.playVideo():this.pluginApi.playMedia(),this.paused=!1)},load:function(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"||this.pluginApi.loadMedia(),this.paused=!1)},pause:function(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?this.pluginApi.pauseVideo():this.pluginApi.pauseMedia(),this.paused=!0)},stop:function(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?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){this.pluginApi!=null&&this.pluginApi.positionFullscreenButton&&this.pluginApi.positionFullscreenButton(Math.floor(n),Math.floor(t),i)},hideFullscreenButton:function(){this.pluginApi!=null&&this.pluginApi.hideFullscreenButton&&this.pluginApi.hideFullscreenButton()},setSrc:function(n){if(typeof n=="string")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){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?this.pluginApi.seekTo(n):this.pluginApi.setCurrentTime(n),this.currentTime=n)},setVolume:function(n){this.pluginApi!=null&&(this.pluginType=="youtube"?this.pluginApi.setVolume(n*100):this.pluginApi.setVolume(n),this.volume=n)},setMuted:function(n){this.pluginApi!=null&&(this.pluginType=="youtube"?(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");this.pluginApi!=null&&this.pluginApi.setVideoSize&&this.pluginApi.setVideoSize(n,t)},setFullscreen:function(n){this.pluginApi!=null&&this.pluginApi.setFullscreen&&this.pluginApi.setFullscreen(n)},enterFullScreen:function(){this.pluginApi!=null&&this.pluginApi.setFullscreen&&this.setFullscreen(!0)},exitFullScreen:function(){this.pluginApi!=null&&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(null,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}t.pluginApi!=null&&t.success&&t.success(t,i)}},fireEvent:function(n,t,i){var r,u;if(n=this.pluginMediaElements[n]){t={type:t,target:n};for(r in i)n[r]=i[r],t[r]=i[r];u=i.bufferedTime||0;t.target.buffered=t.buffered={start:function(){return 0},end:function(){return u},length:1};n.dispatchEvent(t.type,t)}}};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:"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 s=mejs.MediaElementDefaults,r=typeof n=="string"?document.getElementById(n):n,u=r.tagName.toLowerCase(),c=u==="audio"||u==="video",e=c?r.getAttribute("src"):r.getAttribute("href");u=r.getAttribute("poster");var o=r.getAttribute("autoplay"),f=r.getAttribute("preload"),h=r.getAttribute("controls"),i;for(i in t)s[i]=t[i];return e=typeof e=="undefined"||e===null||e==""?null:e,u=typeof u=="undefined"||u===null?"":u,f=typeof f=="undefined"||f===null||f==="false"?"none":f,o=!(typeof o=="undefined"||o===null||o==="false"),h=!(typeof h=="undefined"||h===null||h==="false"),i=this.determinePlayback(r,s,mejs.MediaFeatures.supportsMediaTag,c,e),i.url=i.url!==null?mejs.Utility.absolutizeUrl(i.url):"",i.method=="native"?(mejs.MediaFeatures.isBustedAndroid&&(r.src=i.url,r.addEventListener("click",function(){r.play()},!1)),this.updateNative(i,s,o,f)):i.method!==""?this.createPlugin(i,s,u,o,f,h):(this.createErrorMessage(i,s,u),this)},determinePlayback:function(n,t,i,r,u){var e=[],f,s,h,o={method:"",url:"",htmlMediaElement:n,isVideo:n.tagName.toLowerCase()!="audio"},c;if(typeof t.type!="undefined"&&t.type!=="")if(typeof t.type=="string")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(u!==null)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],s.nodeType==1&&s.tagName.toLowerCase()=="source"&&(u=s.getAttribute("src"),h=this.formatType(u,s.getAttribute("type")),s=s.getAttribute("media"),(!s||!window.matchMedia||window.matchMedia&&window.matchMedia(s).matches)&&e.push({type:h,url:u}));if(!r&&e.length>0&&e[0].url!==null&&this.getTypeFromFile(e[0].url).indexOf("audio")>-1&&(o.isVideo=!1),mejs.MediaFeatures.isBustedAndroid&&(n.canPlayType=function(n){return n.match(/video\/(mp4|m4v)/gi)!==null?"maybe":""}),mejs.MediaFeatures.isChromium&&(n.canPlayType=function(n){return n.match(/video\/(webm|ogv|ogg)/gi)!==null?"maybe":""}),i&&(t.mode==="auto"||t.mode==="auto_plugin"||t.mode==="native")&&!(mejs.MediaFeatures.isBustedNativeHTTPS&&t.httpsBasicAuthSite===!0)){for(r||(f=document.createElement(o.isVideo?"video":"audio"),n.parentNode.insertBefore(f,n),n.style.display="none",o.htmlMediaElement=n=f),f=0;f<e.length;f++)if(e[f].type=="video/m3u8"||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(o.method==="native"&&(o.url!==null&&(n.src=o.url),t.mode!=="auto_plugin"))return o}if(t.mode==="auto"||t.mode==="auto_plugin"||t.mode==="shim")for(f=0;f<e.length;f++)for(h=e[f].type,n=0;n<t.plugins.length;n++)for(u=t.plugins[n],s=mejs.plugins[u],i=0;i<s.length;i++)if(c=s[i],c.version==null||mejs.PluginDetector.hasPluginVersion(u,c.version))for(r=0;r<c.types.length;r++)if(h==c.types[r])return o.method=u,o.url=e[f].url,o;return t.mode==="auto_plugin"&&o.method==="native"?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){return n=n.split("?")[0],n=n.substring(n.lastIndexOf(".")+1).toLowerCase(),(/(mp4|m4v|ogg|ogv|m3u8|webm|webmv|flv|wmv|mpeg|mov)/gi.test(n)?"video":"audio")+"/"+this.getTypeFromExtension(n)},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 v,e;i=n.htmlMediaElement;var l=1,a=1,h="me_"+n.method+"_"+mejs.meIndex++,o=new mejs.PluginMediaElement(h,n.method,n.url),c=document.createElement("div"),s;for(o.tagName=i.tagName,s=0;s<i.attributes.length;s++)v=i.attributes[s],v.specified==!0&&o.setAttribute(v.name,v.value);for(s=i.parentNode;s!==null&&s.tagName.toLowerCase()!=="body"&&s.parentNode!=null;){if(s.parentNode.tagName.toLowerCase()==="p"){s.parentNode.parentNode.insertBefore(s,s.parentNode);break}s=s.parentNode}n.isVideo?(l=t.pluginWidth>0?t.pluginWidth:t.videoWidth>0?t.videoWidth:i.getAttribute("width")!==null?i.getAttribute("width"):t.defaultVideoWidth,a=t.pluginHeight>0?t.pluginHeight:t.videoHeight>0?t.videoHeight:i.getAttribute("height")!==null?i.getAttribute("height"):t.defaultVideoHeight,l=mejs.Utility.encodeUrl(l),a=mejs.Utility.encodeUrl(a)):t.enablePluginDebug&&(l=320,a=240);o.success=t.success;mejs.MediaPluginBridge.registerPluginElement(h,o,i);c.className="me-plugin";c.id=h+"_container";n.isVideo?i.parentNode.insertBefore(c,i):document.body.insertBefore(c,document.body.childNodes[0]);r=["id="+h,"isvideo="+(n.isVideo?"true":"false"),"autoplay="+(r?"true":"false"),"preload="+u,"width="+l,"startvolume="+t.startVolume,"timerrate="+t.timerRate,"flashstreamer="+t.flashStreamer,"height="+a,"pseudostreamstart="+t.pseudoStreamingStartQueryParam];n.url!==null&&(n.method=="flash"?r.push("file="+mejs.Utility.encodeUrl(n.url)):r.push("file="+n.url));t.enablePluginDebug&&r.push("debug=true");t.enablePluginSmoothing&&r.push("smoothing=true");t.enablePseudoStreaming&&r.push("pseudostreaming=true");f&&r.push("controls=true");t.pluginVars&&(r=r.concat(t.pluginVars));switch(n.method){case"silverlight":c.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+h+'" name="'+h+'" width="'+l+'" height="'+a+'" class="mejs-shim"><param name="initParams" value="'+r.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?(n=document.createElement("div"),c.appendChild(n),n.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+h+'" width="'+l+'" height="'+a+'" class="mejs-shim"><param name="movie" value="'+t.pluginPath+t.flashName+"?x="+new Date+'" /><param name="flashvars" value="'+r.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="'+r.join("&")+'" width="'+l+'" height="'+a+'" scale="default"class="mejs-shim"><\/embed>';break;case"youtube":n.url.lastIndexOf("youtu.be")!=-1?(n=n.url.substr(n.url.lastIndexOf("/")+1),n.indexOf("?")!=-1&&(n=n.substr(0,n.indexOf("?")))):n=n.url.substr(n.url.lastIndexOf("=")+1);youtubeSettings={container:c,containerId:c.id,pluginMediaElement:o,pluginId:h,videoId:n,height:a,width:l};mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])?mejs.YouTubeApi.createFlash(youtubeSettings):mejs.YouTubeApi.enqueueIframe(youtubeSettings);break;case"vimeo":t=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="+t+'" width="'+l+'" height="'+a+'" frameborder="0" class="mejs-shim" id="'+t+'"><\/iframe>';typeof $f=="function"?(e=$f(c.childNodes[0]),e.addEvent("ready",function(){function n(n,t,i,r){n={type:i,target:t};i=="timeupdate"&&(t.currentTime=n.currentTime=r.seconds,t.duration=n.duration=r.duration);t.dispatchEvent(n.type,n)}$.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 i.style.display="none",i.removeAttribute("autoplay"),o},updateNative:function(n,t){var i=n.htmlMediaElement,r;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){if(i={type:i,target:t},n&&n.getDuration){t.currentTime=i.currentTime=n.getCurrentTime();t.duration=i.duration=n.getDuration();i.paused=t.paused;i.ended=t.ended;i.muted=n.isMuted();i.volume=n.getVolume()/100;i.bytesTotal=n.getVideoBytesTotal();i.bufferedBytes=n.getVideoBytesLoaded();var r=i.bufferedBytes/i.bytesTotal*i.duration;i.target.buffered=i.buffered={start:function(){return 0},end:function(){return r},length:1}}t.dispatchEvent(i.type,i)},iFrameReady:function(){for(this.isIframeLoaded=this.isLoaded=!0;this.iframeQueue.length>0;)this.createIframe(this.iframeQueue.pop())},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;i.pluginApi=i.pluginElement=t;mejs.MediaPluginBridge.initPlugin(n);t.cueVideoById(r.videoId);n=r.containerId+"_callback";window[n]=function(n){mejs.YouTubeApi.handleStateChange(n,t,i)};t.addEventListener("onStateChange",n);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){var i={locale:{language:"",strings:{}},methods:{}};i.getLanguage=function(){return(i.locale.language||window.navigator.userLanguage||window.navigator.language).substr(0,2).toLowerCase()};typeof mejsL10n!="undefined"&&(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=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(typeof n=="string"&&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){typeof mejsL10n!="undefined"&&(n[mejsL10n.language]=mejsL10n.strings)}(mejs.i18n.locale.strings),function(n){typeof n.de=="undefined"&&(n.de={Fullscreen:"Vollbild","Go Fullscreen":"Vollbild an","Turn off Fullscreen":"Vollbild aus",Close:"Schließen"})}(mejs.i18n.locale.strings),function(n){typeof n.zh=="undefined"&&(n.zh={Fullscreen:"全螢幕","Go Fullscreen":"全屏模式","Turn off Fullscreen":"退出全屏模式",Close:"關閉"})}(mejs.i18n.locale.strings);typeof jQuery!="undefined"?mejs.$=jQuery:typeof ender!="undefined"&&(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 n.duration*.05},defaultSeekForwardInterval:function(n){return n.duration*.05},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());t.setVolume(Math.min(t.volume+.1,1))}},{keys:[40],action:function(n,t){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());t.setVolume(Math.max(t.volume-.1,0))}},{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){typeof n.enterFullScreen!="undefined"&&(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.media.muted?n.setMuted(!1):n.setMuted(!0)}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(t,i){return(this instanceof mejs.MediaElementPlayer)?(this.$media=this.$node=n(t),this.node=this.media=this.$media[0],typeof this.node.player!="undefined")?this.node.player:(this.node.player=this,typeof i=="undefined"&&(i=this.$node.data("mejsoptions")),this.options=n.extend({},mejs.MepDefaults,i),this.id="mep_"+mejs.mepIndex++,mejs.players[this.id]=this,this.init(),this):new mejs.MediaElementPlayer(t,i)};mejs.MediaElementPlayer.prototype={hasFocus:!1,controlsAreVisible:!0,init:function(){var t=this,i=mejs.MediaFeatures,u=n.extend(!0,{},t.options,{success:function(n,i){t.meReady(n,i)},error:function(n){t.handleError(n)}}),r=t.media.tagName.toLowerCase();t.isDynamic=r!=="audio"&&r!=="video";t.isVideo=t.isDynamic?t.options.isVideo:r!=="audio"&&t.options.isVideo;i.isiPad&&t.options.iPadUseNativeControls||i.isiPhone&&t.options.iPhoneUseNativeControls?(t.$media.attr("controls","controls"),i.isiPad&&t.media.getAttribute("autoplay")!==null&&t.play()):i.isAndroid&&t.options.AndroidUseNativeControls||(t.$media.removeAttr("controls"),t.container=n('<div id="'+t.id+'" class="mejs-container '+(mejs.MediaFeatures.svg?"svg":"no-svg")+'"><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),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?(i=t.$media.clone(),t.container.find(".mejs-mediaelement").append(i),t.$media.remove(),t.$node=t.$media=i,t.node=t.media=i[0]):t.container.find(".mejs-mediaelement").append(t.$media),t.controls=t.container.find(".mejs-controls"),t.layers=t.container.find(".mejs-layers"),i=t.isVideo?"video":"audio",r=i.substring(0,1).toUpperCase()+i.substring(1),t.width=t.options[i+"Width"]>0||t.options[i+"Width"].toString().indexOf("%")>-1?t.options[i+"Width"]:t.media.style.width!==""&&t.media.style.width!==null?t.media.style.width:t.media.getAttribute("width")!==null?t.$media.attr("width"):t.options["default"+r+"Width"],t.height=t.options[i+"Height"]>0||t.options[i+"Height"].toString().indexOf("%")>-1?t.options[i+"Height"]:t.media.style.height!==""&&t.media.style.height!==null?t.media.style.height:t.$media[0].getAttribute("height")!==null?t.$media.attr("height"):t.options["default"+r+"Height"],t.setPlayerSize(t.width,t.height),u.pluginWidth=t.width,u.pluginHeight=t.height);mejs.MediaElement(t.$media[0],u);typeof t.container!="undefined"&&t.controlsAreVisible&&t.container.trigger("controlsshown")},showControls:function(n){var t=this;n=typeof n=="undefined"||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=typeof t=="undefined"||t;!i.controlsAreVisible||i.options.alwaysShowControls||(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=typeof n!="undefined"?n:1500;t.killControlsTimer("start");t.controlsTimer=setTimeout(function(){t.hideControls();t.killControlsTimer("hide")},n)},killControlsTimer:function(){this.controlsTimer!==null&&(clearTimeout(this.controlsTimer),delete this.controlsTimer,this.controlsTimer=null)},controlsEnabled:!0,disableControls:function(){this.killControlsTimer();this.hideControls(!1);this.controlsEnabled=!1},enableControls:function(){this.showControls(!1);this.controlsEnabled=!0},meReady:function(n,t){var i=this,r=mejs.MediaFeatures,u=t.getAttribute("autoplay"),f;if(u=!(typeof u=="undefined"||u===null||u==="false"),!i.created){if(i.created=!0,i.media=n,i.domNode=t,!(r.isAndroid&&i.options.AndroidUseNativeControls)&&!(r.isiPad&&i.options.iPadUseNativeControls)&&!(r.isiPhone&&i.options.iPhoneUseNativeControls)){i.buildposter(i,i.controls,i.layers,i.media);i.buildkeyboard(i,i.controls,i.layers,i.media);i.buildoverlays(i,i.controls,i.layers,i.media);i.findTracks();for(f in i.options.features)if(r=i.options.features[f],i["build"+r])try{i["build"+r](i,i.controls,i.layers,i.media)}catch(e){}i.container.trigger("controlsready");i.setPlayerSize(i.width,i.height);i.setControlsSize();i.isVideo&&(mejs.MediaFeatures.hasTouch?i.$media.bind("touchstart",function(){i.controlsAreVisible?i.hideControls(!1):i.controlsEnabled&&i.showControls(!1)}):(i.clickToPlayPauseCallback=function(){i.options.clickToPlayPause&&(i.media.paused?i.play():i.pause())},i.media.addEventListener("click",i.clickToPlayPauseCallback,!1),i.container.bind("mouseenter mouseover",function(){i.controlsEnabled&&(i.options.alwaysShowControls||(i.killControlsTimer("enter"),i.showControls(),i.startControlsTimer(2500)))}).bind("mousemove",function(){i.controlsEnabled&&(i.controlsAreVisible||i.showControls(),i.options.alwaysShowControls||i.startControlsTimer(2500))}).bind("mouseleave",function(){!i.controlsEnabled||i.media.paused||i.options.alwaysShowControls||i.startControlsTimer(1e3)})),i.options.hideVideoControlsOnLoad&&i.hideControls(!1),u&&!i.options.alwaysShowControls&&i.hideControls(),i.options.enableAutosize&&i.media.addEventListener("loadedmetadata",function(n){i.options.videoHeight<=0&&i.domNode.getAttribute("height")===null&&!isNaN(n.target.videoHeight)&&(i.setPlayerSize(n.target.videoWidth,n.target.videoHeight),i.setControlsSize(),i.media.setVideoSize(n.target.videoWidth,n.target.videoHeight))},!1));n.addEventListener("play",function(){var t,n;for(t in mejs.players)n=mejs.players[t],n.id==i.id||!i.options.pauseOtherPlayers||n.paused||n.ended||n.pause(),n.hasFocus=!1;i.hasFocus=!0},!1);i.media.addEventListener("ended",function(){if(i.options.autoRewind)try{i.media.setCurrentTime(0)}catch(n){}i.media.pause();i.setProgressRail&&i.setProgressRail();i.setCurrentRail&&i.setCurrentRail();i.options.loop?i.play():!i.options.alwaysShowControls&&i.controlsEnabled&&i.showControls()},!1);i.media.addEventListener("loadedmetadata",function(){i.updateDuration&&i.updateDuration();i.updateCurrent&&i.updateCurrent();i.isFullScreen||(i.setPlayerSize(i.width,i.height),i.setControlsSize())},!1);setTimeout(function(){i.setPlayerSize(i.width,i.height);i.setControlsSize()},50);i.globalBind("resize",function(){i.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen||i.setPlayerSize(i.width,i.height);i.setControlsSize()});i.media.pluginType=="youtube"&&i.options.autoplay&&i.container.find(".mejs-overlay-play").hide()}u&&n.pluginType=="native"&&i.play();i.options.success&&(typeof i.options.success=="string"?window[i.options.success](i.media,i.domNode,i):i.options.success(i.media,i.domNode,i))}},handleError:function(n){this.controls.hide();this.options.error&&this.options.error(n)},setPlayerSize:function(t,i){if(!this.options.setDimensions)return!1;if(typeof t!="undefined"&&(this.width=t),typeof i!="undefined"&&(this.height=i),this.height.toString().indexOf("%")>0||this.$node.css("max-width")==="100%"||this.$node[0].currentStyle&&this.$node[0].currentStyle.maxWidth==="100%"){var r=this.isVideo?this.media.videoWidth&&this.media.videoWidth>0?this.media.videoWidth:this.media.getAttribute("width")!==null?this.media.getAttribute("width"):this.options.defaultVideoWidth:this.options.defaultAudioWidth,e=this.isVideo?this.media.videoHeight&&this.media.videoHeight>0?this.media.videoHeight:this.media.getAttribute("height")!==null?this.media.getAttribute("height"):this.options.defaultVideoHeight:this.options.defaultAudioHeight,u=this.container.parent().closest(":visible").width(),f=this.container.parent().closest(":visible").height();r=this.isVideo||!this.options.autosizeProgress?parseInt(u*e/r,10):e;(isNaN(r)||f!=0&&r>f)&&(r=f);this.container.parent()[0].tagName.toLowerCase()==="body"&&(u=n(window).width(),r=n(window).height());r!=0&&u!=0&&(this.container.width(u).height(r),this.$media.add(this.container.find(".mejs-shim")).width("100%").height("100%"),this.isVideo&&this.media.setVideoSize&&this.media.setVideoSize(u,r),this.layers.children(".mejs-layer").width("100%").height("100%"))}else this.container.width(this.width).height(this.height),this.layers.children(".mejs-layer").width(this.width).height(this.height);u=this.layers.find(".mejs-overlay-play");f=u.find(".mejs-overlay-button");u.height(this.container.height()-this.controls.height());f.css("margin-top","-"+(f.height()/2-this.controls.height()/2).toString()+"px")},setControlsSize:function(){var f=0,t=0,i=this.controls.find(".mejs-time-rail"),r=this.controls.find(".mejs-time-total");this.controls.find(".mejs-time-current");this.controls.find(".mejs-time-loaded");var e=i.siblings(),o=e.last(),u=null;if(!(!this.container.is(":visible")||!i.length||!i.is(":visible"))){this.options&&!this.options.autosizeProgress&&(t=parseInt(i.css("width")));t!==0&&t||(e.each(function(){var t=n(this);t.css("position")!="absolute"&&t.is(":visible")&&(f+=n(this).outerWidth(!0))}),t=this.controls.width()-f-(i.outerWidth(!0)-i.width()));do i.width(t),r.width(t-(r.outerWidth(!0)-r.width())),o.css("position")!="absolute"&&(u=o.position(),t--);while(u!=null&&u.top>0&&t>0);this.setProgressRail&&this.setProgressRail();this.setCurrentRail&&this.setCurrentRail()}},buildposter:function(t,i,r,u){var f=n('<div class="mejs-poster mejs-layer"><\/div>').appendTo(r);i=t.$media.attr("poster");t.options.poster!==""&&(i=t.options.poster);i!==""&&i!=null?this.setPoster(i):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 i=this.container.find(".mejs-poster"),r=i.find("img");r.length==0&&(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()},!1);u.addEventListener("canplay",function(){f.hide();i.find(".mejs-time-buffering").hide()},!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.globalBind("keydown",function(n){return f.onkeydown(t,u,n)});f.globalBind("click",function(i){t.hasFocus=n(i.target).closest(".mejs-container").length!=0})},onkeydown:function(n,t,i){var r,e;if(n.hasFocus&&n.options.enableKeyboard)for(r=0,e=n.options.keyActions.length;r<e;r++)for(var u=n.options.keyActions[r],f=0,o=u.keys.length;f<o;f++)if(i.keyCode==u.keys[f])return typeof i.preventDefault=="function"&&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 t,n;for(t in this.options.features)if(n=this.options.features[t],this["clean"+n])try{this["clean"+n](this)}catch(i){}this.isDynamic?this.$node.insertBefore(this.container):(this.$media.prop("controls",!0),this.$node.clone().insertBefore(this.container).show(),this.$node.remove());this.media.pluginType!=="native"&&this.media.remove();delete mejs.players[this.id];typeof this.container=="object"&&this.container.remove();this.globalUnbind();delete this.node.player}},function(){function t(t,r){var u={d:[],w:[]};return n.each((t||"").split(" "),function(n,t){var f=t+"."+r;f.indexOf(".")===0?(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){i=t(i,this.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){i=t(i,this.id);i.d&&n(document).unbind(i.d,r);i.w&&n(window).unbind(i.w,r)}}();typeof n!="undefined"&&(n.fn.mediaelementplayer=function(t){return t===!1?this.each(function(){var t=n(this).data("mediaelementplayer");t&&t.remove();n(this).removeData("mediaelementplayer")}):this.each(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,{playpauseText:mejs.i18n.t("Play/Pause")});n.extend(MediaElementPlayer.prototype,{buildplaypause:function(t,i,r,u){var f=n('<div class="mejs-button mejs-playpause-button mejs-play" ><button type="button" aria-controls="'+this.id+'" title="'+this.options.playpauseText+'" aria-label="'+this.options.playpauseText+'"><\/button><\/div>').appendTo(i).click(function(n){return n.preventDefault(),u.paused?u.play():u.pause(),!1});u.addEventListener("play",function(){f.removeClass("mejs-play").addClass("mejs-pause")},!1);u.addEventListener("playing",function(){f.removeClass("mejs-play").addClass("mejs-pause")},!1);u.addEventListener("pause",function(){f.removeClass("mejs-pause").addClass("mejs-play")},!1);u.addEventListener("paused",function(){f.removeClass("mejs-pause").addClass("mejs-play")},!1)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{stopText:"Stop"});n.extend(MediaElementPlayer.prototype,{buildstop:function(t,i,r,u){n('<div class="mejs-button mejs-stop-button mejs-stop"><button type="button" aria-controls="'+this.id+'" title="'+this.options.stopText+'" aria-label="'+this.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(MediaElementPlayer.prototype,{buildprogress:function(t,i,r,u){var f,e;n('<div class="mejs-time-rail"><span class="mejs-time-total"><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><\/span><\/div>').appendTo(i);i.find(".mejs-time-buffering").hide();f=this;e=i.find(".mejs-time-total");r=i.find(".mejs-time-loaded");var c=i.find(".mejs-time-current"),l=i.find(".mejs-time-handle"),o=i.find(".mejs-time-float"),a=i.find(".mejs-time-float-current"),h=function(n){n=n.originalEvent.changedTouches?n.originalEvent.changedTouches[0].pageX:n.pageX;var i=e.offset(),r=e.outerWidth(!0),t=0,f=t=0;u.duration&&(n<i.left?n=i.left:n>r+i.left&&(n=r+i.left),f=n-i.left,t=f/r,t=t<=.02?0:t*u.duration,s&&t!==u.currentTime&&u.setCurrentTime(t),mejs.MediaFeatures.hasTouch||(o.css("left",f),a.html(mejs.Utility.secondsToTimeCode(t)),o.show()))},s=!1;e.bind("mousedown touchstart",function(n){if(n.which===1||n.which===0)return s=!0,h(n),f.globalBind("mousemove.dur touchmove.dur",function(n){h(n)}),f.globalBind("mouseup.dur touchend.dur",function(){s=!1;o.hide();f.globalUnbind(".dur")}),!1}).bind("mouseenter",function(){f.globalBind("mousemove.dur",function(n){h(n)});mejs.MediaFeatures.hasTouch||o.show()}).bind("mouseleave",function(){s||(f.globalUnbind(".dur"),o.hide())});u.addEventListener("progress",function(n){t.setProgressRail(n);t.setCurrentRail(n)},!1);u.addEventListener("timeupdate",function(n){t.setProgressRail(n);t.setCurrentRail(n)},!1);f.loaded=r;f.total=e;f.current=c;f.handle=l},setProgressRail:function(n){var t=n!=undefined?n.target:this.media,i=null;t&&t.buffered&&t.buffered.length>0&&t.buffered.end&&t.duration?i=t.buffered.end(0)/t.duration:t&&t.bytesTotal!=undefined&&t.bytesTotal>0&&t.bufferedBytes!=undefined?i=t.bufferedBytes/t.bytesTotal:n&&n.lengthComputable&&n.total!=0&&(i=n.loaded/n.total);i!==null&&(i=Math.min(1,Math.max(0,i)),this.loaded&&this.total&&this.loaded.width(this.total.width()*i))},setCurrentRail:function(){if(this.media.currentTime!=undefined&&this.media.duration&&this.total&&this.handle){var n=Math.round(this.total.width()*this.media.currentTime/this.media.duration),t=n-Math.round(this.handle.outerWidth(!0)/2);this.current.width(n);this.handle.css("left",t)}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:"<span> | <\/span>"});n.extend(MediaElementPlayer.prototype,{buildcurrent:function(t,i,r,u){n('<div class="mejs-time"><span class="mejs-currenttime">'+(t.options.alwaysShowHours?"00:":"")+(t.options.showTimecodeFrameCount?"00:00:00":"00:00")+"<\/span><\/div>").appendTo(i);this.currenttime=this.controls.find(".mejs-currenttime");u.addEventListener("timeupdate",function(){t.updateCurrent()},!1)},buildduration:function(t,i,r,u){i.children().last().find(".mejs-currenttime").length>0?n(this.options.timeAndDurationSeparator+'<span class="mejs-duration">'+(this.options.duration>0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.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">'+(this.options.duration>0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25):(t.options.alwaysShowHours?"00:":"")+(t.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"<\/span><\/div>").appendTo(i));this.durationD=this.controls.find(".mejs-duration");u.addEventListener("timeupdate",function(){t.updateDuration()},!1)},updateCurrent:function(){this.currenttime&&this.currenttime.html(mejs.Utility.secondsToTimeCode(this.media.currentTime,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25))},updateDuration:function(){this.container.toggleClass("mejs-long-video",this.media.duration>3600);this.durationD&&(this.options.duration>0||this.media.duration)&&this.durationD.html(mejs.Utility.secondsToTimeCode(this.options.duration>0?this.options.duration:this.media.duration,this.options.alwaysShowHours,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("Mute Toggle"),hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical"});n.extend(MediaElementPlayer.prototype,{buildvolume:function(t,i,r,u){if(!((mejs.MediaFeatures.isAndroid||mejs.MediaFeatures.isiOS)&&this.options.hideVolumeOnTouchDevices)){var f=this,h=f.isVideo?f.options.videoVolume:f.options.audioVolume,s=h=="horizontal"?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><div class="mejs-horizontal-volume-slider"><div class="mejs-horizontal-volume-total"><\/div><div class="mejs-horizontal-volume-current"><\/div><div class="mejs-horizontal-volume-handle"><\/div><\/div>').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><div class="mejs-volume-slider"><div class="mejs-volume-total"><\/div><div class="mejs-volume-current"><\/div><div class="mejs-volume-handle"><\/div><\/div><\/div>').appendTo(i),o=f.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),e=f.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),y=f.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),l=f.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),c=function(n,t){if(o.is(":visible")||typeof t!="undefined")if(n=Math.max(0,n),n=Math.min(n,1),n==0?s.removeClass("mejs-mute").addClass("mejs-unmute"):s.removeClass("mejs-unmute").addClass("mejs-mute"),h=="vertical"){var i=e.height(),r=e.position(),u=i-i*n;l.css("top",Math.round(r.top+u-l.height()/2));y.height(i-u);y.css("top",r.top+u)}else i=e.width(),r=e.position(),i=i*n,l.css("left",Math.round(r.left+i-l.width()/2)),y.width(Math.round(i));else o.show(),c(n,!0),o.hide()},p=function(n){var t=null,i=e.offset();if(h=="vertical"){if(t=e.height(),parseInt(e.css("top").replace(/px/,""),10),t=(t-(n.pageY-i.top))/t,i.top==0||i.left==0)return}else t=e.width(),t=(n.pageX-i.left)/t;t=Math.max(0,t);t=Math.min(t,1);c(t);t==0?u.setMuted(!0):u.setMuted(!1);u.setVolume(t)},a=!1,v=!1;s.hover(function(){o.show();v=!0},function(){v=!1;a||h!="vertical"||o.hide()});o.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(){a=!1;f.globalUnbind(".vol");v||h!="vertical"||o.hide()}),a=!0,!1});s.find("button").click(function(){u.setMuted(!u.muted)});u.addEventListener("volumechange",function(){a||(u.muted?(c(0),s.removeClass("mejs-mute").addClass("mejs-unmute")):(c(u.volume),s.removeClass("mejs-unmute").addClass("mejs-mute")))},!1);f.container.is(":visible")&&(c(t.options.startVolume),t.options.startVolume===0&&u.setMuted(!0),u.pluginType==="native"&&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 f,e,s,h,l;if(t.isVideo){if(t.isInIframe=window.location!=window.parent.location,mejs.MediaFeatures.hasTrueNativeFullScreen&&t.globalBind(mejs.MediaFeatures.fullScreenEventName,function(){t.isFullScreen&&(mejs.MediaFeatures.isFullScreen()?(t.isNativeFullScreen=!0,t.setControlsSize()):(t.isNativeFullScreen=!1,t.exitFullScreen()))}),f=this,e=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),f.media.pluginType!=="native"&&(f.options.usePluginFullScreen||mejs.MediaFeatures.isFirefox))if(s=null,function(){var n=document.createElement("x"),i=document.documentElement,t=window.getComputedStyle;return("pointerEvents"in n.style)?(n.style.pointerEvents="auto",n.style.pointerEvents="x",i.appendChild(n),t=t&&t(n,"").pointerEvents==="auto",i.removeChild(n),!!t):!1}()&&!mejs.MediaFeatures.isOpera){var c=!1,a=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={};for(i=["top","left","right","bottom"],l=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})},f.globalBind("resize",function(){l()}),h=0,r=i.length;h<r;h++)o[i[h]]=n('<div class="mejs-fullscreen-hover" />').appendTo(f.container).mouseover(a).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();l();c=!0}});u.addEventListener("fullscreenchange",function(){f.isFullScreen=!f.isFullScreen;f.isFullScreen?f.media.removeEventListener("click",f.clickToPlayPauseCallback):f.media.addEventListener("click",f.clickToPlayPauseCallback);a()});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(){s!==null&&(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(){s!==null&&(clearTimeout(s),delete s);s=setTimeout(function(){u.hideFullscreenButton()},1500)});else e.click(function(){mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||t.isFullScreen?t.exitFullScreen():t.enterFullScreen()});t.fullscreenBtn=e;f.globalBind("keydown",function(n){(mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||f.isFullScreen)&&n.keyCode==27&&t.exitFullScreen()})}},cleanfullscreen:function(n){n.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var t=this,i;if(!(t.media.pluginType!=="native"&&(mejs.MediaFeatures.isFirefox||t.options.usePluginFullScreen))){if(n(document.documentElement).addClass("mejs-fullscreen"),normalHeight=t.container.height(),normalWidth=t.container.width(),t.media.pluginType==="native")if(mejs.MediaFeatures.hasTrueNativeFullScreen)mejs.MediaFeatures.requestFullScreen(t.container[0]),t.isInIframe&&setTimeout(function r(){if(t.isNativeFullScreen){var u=(window.devicePixelRatio||1)*n(window).width(),i=screen.width;Math.abs(i-u)>i*.002?t.exitFullScreen():setTimeout(r,500)}},500);else if(mejs.MediaFeatures.hasSemiNativeFullScreen){t.media.webkitEnterFullscreen();return}if(t.isInIframe&&(i=t.options.newWindowCallback(this),i!==""))if(mejs.MediaFeatures.hasTrueNativeFullScreen)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);else{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");return}t.container.addClass("mejs-container-fullscreen").width("100%").height("100%");t.containerSizeTimeout=setTimeout(function(){t.container.css({width:"100%",height:"100%"});t.setControlsSize()},500);t.media.pluginType==="native"?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(){clearTimeout(this.containerSizeTimeout);this.media.pluginType!=="native"&&mejs.MediaFeatures.isFirefox?this.media.setFullscreen(!1):(mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||this.isFullScreen)&&mejs.MediaFeatures.cancelFullScreen(),n(document.documentElement).removeClass("mejs-fullscreen"),this.container.removeClass("mejs-container-fullscreen").width(normalWidth).height(normalHeight),this.media.pluginType==="native"?this.$media.width(normalWidth).height(normalHeight):(this.container.find(".mejs-shim").width(normalWidth).height(normalHeight),this.media.setVideoSize(normalWidth,normalHeight)),this.layers.children("div").width(normalWidth).height(normalHeight),this.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen"),this.setControlsSize(),this.isFullScreen=!1,this.container.find(".mejs-captions-text").css("font-size",""),this.container.find(".mejs-captions-position").css("bottom",""))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{speeds:["1.50","1.25","1.00","0.75"],defaultSpeed:"1.00"});n.extend(MediaElementPlayer.prototype,{buildspeed:function(t,i,r,u){if(this.media.pluginType=="native"){r='<div class="mejs-button mejs-speed-button"><button type="button">'+this.options.defaultSpeed+'x<\/button><div class="mejs-speed-selector"><ul>';var f;for(n.inArray(this.options.defaultSpeed,this.options.speeds)===-1&&this.options.speeds.push(this.options.defaultSpeed),this.options.speeds.sort(function(n,t){return parseFloat(t)-parseFloat(n)}),f=0;f<this.options.speeds.length;f++)r+='<li><input type="radio" name="speed" value="'+this.options.speeds[f]+'" id="'+this.options.speeds[f]+'" ',this.options.speeds[f]==this.options.defaultSpeed?(r+="checked=true ",r+='/><label for="'+this.options.speeds[f]+'" class="mejs-speed-selected">'+this.options.speeds[f]+"x<\/label><\/li>"):r+='/><label for="'+this.options.speeds[f]+'">'+this.options.speeds[f]+"x<\/label><\/li>";r+="<\/ul><\/div><\/div>";t.speedButton=n(r).appendTo(i);t.playbackspeed=this.options.defaultSpeed;t.speedButton.on("click","input[type=radio]",function(){t.playbackspeed=n(this).attr("value");u.playbackRate=parseFloat(t.playbackspeed);t.speedButton.find("button").text(t.playbackspeed+"x");t.speedButton.find(".mejs-speed-selected").removeClass("mejs-speed-selected");t.speedButton.find("input[type=radio]:checked").next().addClass("mejs-speed-selected")});i=t.speedButton.find(".mejs-speed-selector");i.height(this.speedButton.find(".mejs-speed-selector ul").outerHeight(!0)+t.speedButton.find(".mejs-speed-translations").outerHeight(!0));i.css("top",-1*i.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){if(t.tracks.length!==0){var f;if(this.domNode.textTracks)for(f=this.domNode.textTracks.length-1;f>=0;f--)this.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"><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="'+this.id+'" title="'+this.options.tracksText+'" aria-label="'+this.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),f=i=0;f<t.tracks.length;f++)t.tracks[f].kind=="subtitles"&&i++;if(this.options.toggleCaptionsButtonWhenOnlyOne&&i==1)t.captionsButton.on("click",function(){lang=t.selectedTrack===null?t.tracks[0].srclang:"none";t.setTrack(lang)});else{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")})}for(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++)t.tracks[f].kind=="subtitles"&&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")})});t.node.getAttribute("autoplay")!==null&&t.chapters.css("visibility","hidden")}},setTrack:function(n){var t;if(n=="none")this.selectedTrack=null,this.captionsButton.removeClass("mejs-captions-enabled");else for(t=0;t<this.tracks.length;t++)if(this.tracks[t].srclang==n){this.selectedTrack===null&&this.captionsButton.addClass("mejs-captions-enabled");this.selectedTrack=this.tracks[t];this.captions.attr("lang",this.selectedTrack.srclang);this.displayCaptions();break}},loadNextTrack:function(){this.trackToLoad++;this.trackToLoad<this.tracks.length?(this.isLoadingTrack=!0,this.loadTrack(this.trackToLoad)):(this.isLoadingTrack=!1,this.checkForTracks())},loadTrack:function(t){var r=this,i=r.tracks[t];n.ajax({url:i.src,dataType:"text",success:function(n){i.entries=typeof n=="string"&&/<tt\s+xml/ig.exec(n)?mejs.TrackFormatParser.dfxp.parse(n):mejs.TrackFormatParser.webvtt.parse(n);i.isLoaded=!0;r.enableTrackButton(i.srclang,i.label);r.loadNextTrack();i.kind=="chapters"&&r.media.addEventListener("play",function(){r.media.duration>0&&r.displayChapters(i)},!1);i.kind=="slides"&&r.setupSlides(i)},error:function(){r.loadNextTrack()}})},enableTrackButton:function(t,i){i===""&&(i=mejs.language.codes[t]||t);this.captionsButton.find("input[value="+t+"]").prop("disabled",!1).siblings("label").html(i);this.options.startLanguage==t&&n("#"+this.id+"_captions_"+t).prop("checked",!0).trigger("click");this.adjustLanguageBox()},addTrackButton:function(t,i){i===""&&(i=mejs.language.codes[t]||t);this.captionsButton.find("ul").append(n('<li><input type="radio" name="'+this.id+'_captions" id="'+this.id+"_captions_"+t+'" value="'+t+'" disabled="disabled" /><label for="'+this.id+"_captions_"+t+'">'+i+" (loading)<\/label><\/li>"));this.adjustLanguageBox();this.container.find(".mejs-captions-translations option[value="+t+"]").remove()},adjustLanguageBox:function(){this.captionsButton.find(".mejs-captions-selector").height(this.captionsButton.find(".mejs-captions-selector ul").outerHeight(!0)+this.captionsButton.find(".mejs-captions-translations").outerHeight(!0))},checkForTracks:function(){var n=!1;if(this.options.hideCaptionsButtonWhenEmpty){for(i=0;i<this.tracks.length;i++)if(this.tracks[i].kind=="subtitles"){n=!0;break}n||(this.captionsButton.hide(),this.setControlsSize())}},displayCaptions:function(){if(typeof this.tracks!="undefined"){var n,t=this.selectedTrack;if(t!==null&&t.isLoaded)for(n=0;n<t.entries.times.length;n++)if(this.media.currentTime>=t.entries.times[n].start&&this.media.currentTime<=t.entries.times[n].stop){this.captionsText.html(t.entries.text[n]).attr("class","mejs-captions-text "+(t.entries.times[n].identifier||""));this.captions.show().height(0);return}this.captions.hide()}},setupSlides:function(n){this.slides=n;this.slides.entries.imgs=[this.slides.entries.text.length];this.showSlide(0)},showSlide:function(t){if(!(typeof this.tracks=="undefined"||typeof this.slidesContainer=="undefined")){var r=this,u=r.slides.entries.text[t],i=r.slides.entries.imgs[t];typeof i=="undefined"||typeof i.fadeIn=="undefined"?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(typeof this.slides!="undefined")for(var t=this.slides,n=0;n<t.entries.times.length;n++)if(this.media.currentTime>=t.entries.times[n].start&&this.media.currentTime<=t.entries.times[n].stop){this.showSlide(n);break}},displayChapters:function(){for(var n=0;n<this.tracks.length;n++)if(this.tracks[n].kind=="chapters"&&this.tracks[n].isLoaded){this.drawChapters(this.tracks[n]);this.hasChapters=!0;break}},drawChapters:function(t){var u=this,i,r,f=r=0;for(u.chapters.empty(),i=0;i<t.entries.times.length;i++)r=t.entries.times[i].stop-t.entries.times[i].start,r=Math.floor(r/u.media.duration*100),(r+f>100||i==t.entries.times.length-1&&r+f<100)&&(r=100-f),u.chapters.append(n('<div class="mejs-chapter" rel="'+t.entries.times[i].start+'" style="left: '+f.toString()+"%;width: "+r.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+=r;u.chapters.find("div.mejs-chapter").click(function(){u.media.setCurrentTime(parseFloat(n(this).attr("rel")));u.media.paused&&u.media.play()});u.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){var i=0,f,u,r,e;for(t=mejs.TrackFormatParser.split2(t,/\r?\n/),f={text:[],times:[]};i<t.length;i++){if((u=this.pattern_timecode.exec(t[i]))&&i<t.length){for(i-1>=0&&t[i-1]!==""&&(e=t[i-1]),i++,r=t[i],i++;t[i]!==""&&i<t.length;)r=r+"\n"+t[i],i++;r=n.trim(r).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1<\/a>");f.text.push(r);f.times.push({identifier:e,start:mejs.Utility.convertSMPTEtoSeconds(u[1])===0?.2:mejs.Utility.convertSMPTEtoSeconds(u[1]),stop:mejs.Utility.convertSMPTEtoSeconds(u[3]),settings:u[5]})}e=""}return f}},dfxp:{parse:function(t){var i,u,f,r,e,o;if(t=n(t).filter("tt"),i=0,i=t.children("div").eq(0),u=i.find("p"),i=t.find("#"+i.attr("style")),t={text:[],times:[]},i.length&&(r=i.removeAttr("id").get(0).attributes,r.length))for(f={},i=0;i<r.length;i++)f[r[i].name.split(":")[1]]=r[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){e="";for(o in f)e+=o+":"+f[o]+";"}e&&(r.style=e);r.start===0&&(r.start=.2);t.times.push(r);r=n.trim(u.eq(i).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1<\/a>");t.text.push(r);t.times.start===0&&(t.times.start=2)}return t}},split2:function(n,t){return n.split(t)}};"x\n\ny".split(/\n/gi).length!=3&&(mejs.TrackFormatParser.split2=function(n,t){for(var u=[],i="",r=0;r<n.length;r++)i+=n.substring(r,r+1),t.test(i)&&(u.push(i.replace(t,"")),i="");return u.push(i),u})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(n){return typeof n.enterFullScreen=="undefined"?null:n.isFullScreen?mejs.i18n.t("Turn off Fullscreen"):mejs.i18n.t("Go Fullscreen")},click:function(n){n.isFullScreen?n.exitFullScreen():n.enterFullScreen()}},{render:function(n){return n.media.muted?mejs.i18n.t("Unmute"):mejs.i18n.t("Mute")},click:function(n){n.media.muted?n.setMuted(!1):n.setMuted(!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;n!=null&&(clearTimeout(n),delete n)},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(t,i){for(var o,r=this,f="",e=r.options.contextMenuItems,u=0,s=e.length;u<s;u++)e[u].isSeparator?f+='<div class="mejs-contextmenu-separator"><\/div>':(o=e[u].render(r),o!=null&&(f+='<div class="mejs-contextmenu-item" data-itemindex="'+u+'" id="element-'+Math.random()*1e6+'">'+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];typeof t.show!="undefined"&&t.show(i,r);i.click(function(){typeof t.click!="undefined"&&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.container.find('link[rel="postroll"]').attr("href");typeof u!="undefined"&&(t.postroll=n('<div class="mejs-postroll-layer mejs-layer"><a class="mejs-postroll-close" onclick="$(this).parent().hide();return false;">'+this.options.postrollCloseText+'<\/a><div class="mejs-postroll-layer-content"><\/div><\/div>').prependTo(r).hide(),this.media.addEventListener("ended",function(){n.ajax({dataType:"html",url:u,success:function(n){r.find(".mejs-postroll-layer-content").html(n)}});t.postroll.show()},!1))}})}(mejs.$)