var mejs=mejs||{};mejs.version="2.21.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/dailymotion","video/x-dailymotion","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,i,f="",s="",r,h,t,e,o,c=document.getElementsByTagName("script"),l=c.length,a=n.length;u<l;u++){for(t=c[u].src,r=t.lastIndexOf("/"),r>-1?(o=t.substring(r+1),e=t.substring(0,r+1)):(o=t,e=""),i=0;i<a;i++)if(s=n[i],h=o.indexOf(s),h>-1){f=e;break}if(f!=="")break}return f},calculateTimeFormat:function(n,t,i){var s,u,h,c,e;n<0&&(n=0);typeof i=="undefined"&&(i=25);var r=t.timeFormat,l=r[0],o=r[1]==r[0],a=o?2:1,v=":",y=Math.floor(n/3600)%24,p=Math.floor(n/60)%60,w=Math.floor(n%60),b=Math.floor((n%1*i).toFixed(3)),f=[[b,"f"],[w,"s"],[p,"m"],[y,"h"]];for(r.length<a&&(v=r[a]),s=!1,u=0,h=f.length;u<h;u++)if(r.indexOf(f[u][1])!==-1)s=!0;else if(s){for(c=!1,e=u;e<h;e++)if(f[e][0]>0){c=!0;break}if(!c)break;o||(r=l+r);r=f[u][1]+v+r;o&&(r=f[u][1]+r);l=f[u][1]}t.currentTimeFormat=r},twoDigitsString:function(n){return n<10?"0"+n:String(n)},secondsToTimeCode:function(n,t){var r,f,u;n<0&&(n=0);typeof t!="object"&&(r="m:ss",r=arguments[1]?"hh:mm:ss":r,r=arguments[2]?r+":ff":r,t={currentTimeFormat:r,framesPerSecond:arguments[3]||25});f=t.framesPerSecond;typeof f=="undefined"&&(f=25);var r=t.currentTimeFormat,e=Math.floor(n/3600)%24,o=Math.floor(n/60)%60,s=Math.floor(n%60),h=Math.floor((n%1*f).toFixed(3));for(lis=[[h,"f"],[s,"s"],[o,"m"],[e,"h"]],u=r,i=0,len=lis.length;i<len;i++)u=u.replace(lis[i][1]+lis[i][1],this.twoDigitsString(lis[i][0])),u=u.replace(lis[i][1],lis[i][0]);return u},timeCodeToSeconds:function(n,t,i,r){typeof i=="undefined"?i=!1:typeof r=="undefined"&&(r=25);var u=n.split(":"),e=parseInt(u[0],10),o=parseInt(u[1],10),s=parseInt(u[2],10),f=0;return i&&(f=parseInt(u[3])/r),e*3600+o*60+s+f},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){var t=document.getElementById(n),i;if(t){for(i in t)typeof t[i]=="function"&&(t[i]=null);t.parentNode.removeChild(t)}},determineScheme:function(n){return n&&n.indexOf("://")!=-1?n.substr(0,n.indexOf("://")+3):"//"}};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],e,f,o;if(typeof this.nav.plugins!="undefined"&&typeof this.nav.plugins[n]=="object"){if(e=this.nav.plugins[n].description,e&&!(typeof this.nav.mimeTypes!="undefined"&&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(typeof ActiveXObject!="undefined")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){while(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,f=mejs.PluginDetector.nav,t=mejs.PluginDetector.ua.toLowerCase(),r,i,e=["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=f.appName.toLowerCase().indexOf("microsoft")!=-1||f.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.svgAsImg=!!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),r=0;r<e.length;r++)i=document.createElement(e[r]);n.supportsMediaTag=typeof i.canPlayType!="undefined"||n.isBustedAndroid;try{i.canPlayType("video/mp4")}catch(o){n.supportsMediaTag=!1}n.supportsPointerEvents=function(){var n=document.createElement("x"),t=document.documentElement,i=window.getComputedStyle,r;return("pointerEvents"in n.style)?(n.style.pointerEvents="auto",n.style.pointerEvents="x",t.appendChild(n),r=i&&i(n,"").pointerEvents==="auto",t.removeChild(n),!!r):!1}();n.hasFirefoxPluginMovingProblem=!1;n.hasiOSFullScreen=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.hasiOSFullScreen=!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.hasiOSFullScreen&&t.match(/mac os x 10_5/i)&&(n.hasNativeFullScreen=!1,n.hasiOSFullScreen=!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 r=this.getElementsByTagName("source"),t,i;r.length>0;)this.removeChild(r[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.getPlayerState()==1&&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(i.src);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({type:"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,i=this.events[n.type];if(i)for(t=0;t<i.length;t++)i[t].apply(this,[n])},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.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:"",flashScriptAccess:"sameDomain",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 f={},r=typeof n=="string"?document.getElementById(n):n,l=r.tagName.toLowerCase(),a=l==="audio"||l==="video",e=a?r.getAttribute("src"):r.getAttribute("href"),o=r.getAttribute("poster"),s=r.getAttribute("autoplay"),u=r.getAttribute("preload"),h=r.getAttribute("controls"),i;for(var c in mejs.MediaElementDefaults)f[c]=mejs.MediaElementDefaults[c];for(c in t)f[c]=t[c];return e=typeof e=="undefined"||e===null||e==""?null:e,o=typeof o=="undefined"||o===null?"":o,u=typeof u=="undefined"||u===null||u==="false"?"none":u,s=!(typeof s=="undefined"||s===null||s==="false"),h=!(typeof h=="undefined"||h===null||h==="false"),i=this.determinePlayback(r,f,mejs.MediaFeatures.supportsMediaTag,a,e),i.url=i.url!==null?mejs.Utility.absolutizeUrl(i.url):"",i.scheme=mejs.Utility.determineScheme(i.url),i.method=="native"?(mejs.MediaFeatures.isBustedAndroid&&(r.src=i.url,r.addEventListener("click",function(){r.play()},!1)),this.updateNative(i,f,s,u)):i.method!==""?this.createPlugin(i,f,o,s,u,h):(this.createErrorMessage(i,f,o),this)},determinePlayback:function(n,t,i,r,u){var e=[],f,l,a,v,s,h,o={method:"",url:"",htmlMediaElement:n,isVideo:n.tagName.toLowerCase()!="audio",scheme:""},y,p,c,w,b;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")),b=s.getAttribute("media"),(!b||!window.matchMedia||window.matchMedia&&window.matchMedia(b).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||(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(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,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],c.version==null||mejs.PluginDetector.hasPluginVersion(y,c.version))for(v=0;v<c.types.length;v++)if(h.toLowerCase()==c.types[v].toLowerCase())return o.method=y,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){n=n.split("?")[0];var t=n.substring(n.lastIndexOf(".")+1).toLowerCase(),i=/(mp4|m4v|ogg|ogv|m3u8|webm|webmv|flv|wmv|mpeg|mov)/gi.test(t)?"video/":"audio/";return this.getTypeFromExtension(t,i)},getTypeFromExtension:function(n,t){t=t||"";switch(n){case"mp4":case"m4v":case"m4a":case"f4v":case"f4a":return t+"mp4";case"flv":return t+"x-flv";case"webm":case"webma":case"webmv":return t+"webm";case"ogg":case"oga":case"ogv":return t+"ogg";case"m3u8":return"application/x-mpegurl";case"ts":return t+"mp2t";default:return t+n}},createErrorMessage:function(n,t,i){var r=n.htmlMediaElement,u=document.createElement("div"),f=t.customError;u.className="me-cannotplay";try{u.style.width=r.width+"px";u.style.height=r.height+"px"}catch(e){}f||(f='<a href="'+n.url+'">',i!==""&&(f+='<img src="'+i+'" width="100%" height="100%" alt="" />'),f+="<span>"+mejs.i18n.t("Download File")+"<\/span><\/a>");u.innerHTML=f;r.parentNode.insertBefore(u,r);r.style.display="none";t.error(r)},createPlugin:function(n,t,i,r,u,f){var h=n.htmlMediaElement,v=1,y=1,c="me_"+n.method+"_"+mejs.meIndex++,o=new mejs.PluginMediaElement(c,n.method,n.url),l=document.createElement("div"),d,s,a,b,k,p,g,e,w;for(o.tagName=h.tagName,b=0;b<h.attributes.length;b++)k=h.attributes[b],k.specified&&o.setAttribute(k.name,k.value);for(s=h.parentNode;s!==null&&s.tagName!=null&&s.tagName.toLowerCase()!=="body"&&s.parentNode!=null&&s.parentNode.tagName!=null&&s.parentNode.constructor!=null&&s.parentNode.constructor.name==="ShadowRoot";){if(s.parentNode.tagName.toLowerCase()==="p"){s.parentNode.parentNode.insertBefore(s,s.parentNode);break}s=s.parentNode}n.isVideo?(v=t.pluginWidth>0?t.pluginWidth:t.videoWidth>0?t.videoWidth:h.getAttribute("width")!==null?h.getAttribute("width"):t.defaultVideoWidth,y=t.pluginHeight>0?t.pluginHeight:t.videoHeight>0?t.videoHeight:h.getAttribute("height")!==null?h.getAttribute("height"):t.defaultVideoHeight,v=mejs.Utility.encodeUrl(v),y=mejs.Utility.encodeUrl(y)):t.enablePluginDebug&&(v=320,y=240);o.success=t.success;l.className="me-plugin";l.id=c+"_container";n.isVideo?h.parentNode.insertBefore(l,h):document.body.insertBefore(l,document.body.childNodes[0]);(n.method==="flash"||n.method==="silverlight")&&(a=["id="+c,"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],n.url!==null&&(n.method=="flash"?a.push("file="+mejs.Utility.encodeUrl(n.url)):a.push("file="+n.url)),t.enablePluginDebug&&a.push("debug=true"),t.enablePluginSmoothing&&a.push("smoothing=true"),t.enablePseudoStreaming&&a.push("pseudostreaming=true"),f&&a.push("controls=true"),t.pluginVars&&(a=a.concat(t.pluginVars)),window[c+"_init"]=function(){switch(o.pluginType){case"flash":o.pluginElement=o.pluginApi=document.getElementById(c);break;case"silverlight":o.pluginElement=document.getElementById(o.id);o.pluginApi=o.pluginElement.Content.MediaElementJS}o.pluginApi!=null&&o.success&&o.success(o,h)},window[c+"_event"]=function(n,t){var i,r,u;i={type:n,target:o};for(r in t)o[r]=t[r],i[r]=t[r];u=t.bufferedTime||0;i.target.buffered=i.buffered={start:function(){return 0},end:function(){return u},length:1};o.dispatchEvent(i)});switch(n.method){case"silverlight":l.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+c+'" name="'+c+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="initParams" value="'+a.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?(d=document.createElement("div"),l.appendChild(d),d.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+c+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="movie" value="'+t.pluginPath+t.flashName+"?"+(new Date).getTime()+'" /><param name="flashvars" value="'+a.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+t.flashScriptAccess+'" /><param name="allowFullScreen" value="true" /><param name="scale" value="default" /><\/object>'):l.innerHTML='<embed id="'+c+'" name="'+c+'" play="true" loop="false" quality="high" bgcolor="#000000" wmode="transparent" allowScriptAccess="'+t.flashScriptAccess+'" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" src="'+t.pluginPath+t.flashName+'" flashvars="'+a.join("&")+'" width="'+v+'" height="'+y+'" scale="default"class="mejs-shim"><\/embed>';break;case"youtube":n.url.lastIndexOf("youtu.be")!=-1?(p=n.url.substr(n.url.lastIndexOf("/")+1),p.indexOf("?")!=-1&&(p=p.substr(0,p.indexOf("?")))):p=n.url.substr(n.url.lastIndexOf("=")+1);youtubeSettings={container:l,containerId:l.id,pluginMediaElement:o,pluginId:c,videoId:p,height:y,width:v,scheme:n.scheme};window.postMessage?mejs.YouTubeApi.enqueueIframe(youtubeSettings):mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])&&mejs.YouTubeApi.createFlash(youtubeSettings,t);break;case"vimeo":g=c+"_player";o.vimeoid=n.url.substr(n.url.lastIndexOf("/")+1);l.innerHTML='<iframe src="'+n.scheme+"player.vimeo.com/video/"+o.vimeoid+"?api=1&portrait=0&byline=0&title=0&player_id="+g+'" width="'+v+'" height="'+y+'" frameborder="0" class="mejs-shim" id="'+g+'" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>';typeof $f=="function"?(e=$f(l.childNodes[0]),w=-1,e.addEvent("ready",function(){function n(n,t,i,r){var u={type:i,target:t};i=="timeupdate"&&(t.currentTime=u.currentTime=r.seconds,t.duration=u.duration=r.duration);t.dispatchEvent(u)}e.playVideo=function(){e.api("play")};e.stopVideo=function(){e.api("unload")};e.pauseVideo=function(){e.api("pause")};e.seekTo=function(n){e.api("seekTo",n)};e.setVolume=function(n){e.api("setVolume",n)};e.setMuted=function(n){n?(e.lastVolume=e.api("getVolume"),e.api("setVolume",0)):(e.api("setVolume",e.lastVolume),delete e.lastVolume)};e.getPlayerState=function(){return w};e.addEvent("play",function(){w=1;n(e,o,"play");n(e,o,"playing")});e.addEvent("pause",function(){w=2;n(e,o,"pause")});e.addEvent("finish",function(){w=0;n(e,o,"ended")});e.addEvent("playProgress",function(t){n(e,o,"timeupdate",t)});e.addEvent("seek",function(t){w=3;n(e,o,"seeked",t)});e.addEvent("loadProgress",function(t){w=3;n(e,o,"progress",t)});o.pluginElement=l;o.pluginApi=e;o.success(o,o.pluginElement)})):console.warn("You need to include froogaloop for vimeo to work")}return h.style.display="none",h.removeAttribute("autoplay"),o},updateNative:function(n,t){var i=n.htmlMediaElement;for(var r in mejs.HtmlMediaElement)i[r]=mejs.HtmlMediaElement[r];return t.success(i,i),i}};mejs.YouTubeApi={isIframeStarted:!1,isIframeLoaded:!1,loadIframeApi:function(n){var t,i;this.isIframeStarted||(t=document.createElement("script"),t.src=n.scheme+"www.youtube.com/player_api",i=document.getElementsByTagName("script")[0],i.parentNode.insertBefore(t,i),this.isIframeStarted=!0)},iframeQueue:[],enqueueIframe:function(n){this.isLoaded?this.createIframe(n):(this.loadIframeApi(n),this.iframeQueue.push(n))},createIframe:function(n){var t=n.pluginMediaElement,i=new YT.Player(n.containerId,{height:n.height,width:n.width,videoId:n.videoId,playerVars:{controls:0,wmode:"transparent"},events:{onReady:function(){i.setVideoSize=function(n,t){i.setSize(n,t)};n.pluginMediaElement.pluginApi=i;n.pluginMediaElement.pluginElement=document.getElementById(n.containerId);t.success(t,t.pluginElement);setInterval(function(){mejs.YouTubeApi.createEvent(i,t,"timeupdate")},250)},onStateChange:function(n){mejs.YouTubeApi.handleStateChange(n.data,i,t)}}})},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)},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=n.scheme+"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="'+n.scheme+'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="'+options.flashScriptAccess+'" /><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="'+options.flashScriptAccess+'"><param name="wmode" value="transparent"><\/object>'},flashReady:function(n){var r=this.flashPlayers[n],i=document.getElementById(n),t=r.pluginMediaElement,u;t.pluginApi=t.pluginElement=i;r.success(t,t.pluginElement);i.cueVideoById(r.videoId);u=r.containerId+"_callback";window[u]=function(n){mejs.YouTubeApi.handleStateChange(n,i,t)};i.addEventListener("onStateChange",u);setInterval(function(){mejs.YouTubeApi.createEvent(i,t,"timeupdate")},250);mejs.YouTubeApi.createEvent(i,t,"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.onYouTubePlayerAPIReady=function(){mejs.YouTubeApi.iFrameReady()};window.onYouTubePlayerReady=function(n){mejs.YouTubeApi.flashReady(n)};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};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=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(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){"use strict";typeof mejsL10n!="undefined"&&(n[mejsL10n.language]=mejsL10n.strings)}(mejs.i18n.locale.strings);typeof jQuery!="undefined"?mejs.$=jQuery:typeof Zepto!="undefined"?(mejs.$=Zepto,Zepto.fn.outerWidth=function(n){var t=$(this).width();return n&&(t+=parseInt($(this).css("margin-right"),10),t+=parseInt($(this).css("margin-left"),10)),t}):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,timeFormat:"",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?t.play():t.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){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){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(t,i);var r=this;if(r.$media=r.$node=n(t),r.node=r.media=r.$media[0],r.node)return typeof r.node.player!="undefined"?r.node.player:(typeof i=="undefined"&&(i=r.$node.data("mejsoptions")),r.options=n.extend({},mejs.MepDefaults,i),r.options.timeFormat||(r.options.timeFormat="mm:ss",r.options.alwaysShowHours&&(r.options.timeFormat="hh:mm:ss"),r.options.showTimecodeFrameCount&&(r.options.timeFormat+=":ff")),mejs.Utility.calculateTimeFormat(0,r.options,r.options.framesPerSecond||25),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,r=mejs.MediaFeatures,u=n.extend(!0,{},t.options,{success:function(n,i){t.meReady(n,i)},error:function(n){t.handleError(n)}}),f=t.media.tagName.toLowerCase(),e,i,o;t.isDynamic=f!=="audio"&&f!=="video";t.isVideo=t.isDynamic?t.options.isVideo:f!=="audio"&&t.options.isVideo;r.isiPad&&t.options.iPadUseNativeControls||r.isiPhone&&t.options.iPhoneUseNativeControls?(t.$media.attr("controls","controls"),r.isiPad&&t.media.getAttribute("autoplay")!==null&&t.play()):r.isAndroid&&t.options.AndroidUseNativeControls||(t.$media.removeAttr("controls"),e=t.isVideo?mejs.i18n.t("Video Player"):mejs.i18n.t("Audio Player"),n('<span class="mejs-offscreen">'+e+"<\/span>").insertBefore(t.$media),t.container=n('<div id="'+t.id+'" class="mejs-container '+(mejs.MediaFeatures.svgAsImg?"svg":"no-svg")+'" tabindex="0" role="application" aria-label="'+e+'"><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((r.isAndroid?"mejs-android ":"")+(r.isiOS?"mejs-ios ":"")+(r.isiPad?"mejs-ipad ":"")+(r.isiPhone?"mejs-iphone ":"")+(t.isVideo?"mejs-video ":"mejs-audio ")),t.container.find(".mejs-mediaelement").append(t.$media),t.node.player=t,t.controls=t.container.find(".mejs-controls"),t.layers=t.container.find(".mejs-layers"),i=t.isVideo?"video":"audio",o=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"+o+"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"+o+"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.removeClass("mejs-offscreen").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0;t.container.trigger("controlsshown")}),t.container.find(".mejs-control").removeClass("mejs-offscreen").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0})):(t.controls.removeClass("mejs-offscreen").css("display","block"),t.container.find(".mejs-control").removeClass("mejs-offscreen").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||i.keyboardAction)||(t?(i.controls.stop(!0,!0).fadeOut(200,function(){n(this).addClass("mejs-offscreen").css("display","block");i.controlsAreVisible=!1;i.container.trigger("controlshidden")}),i.container.find(".mejs-control").stop(!0,!0).fadeOut(200,function(){n(this).addClass("mejs-offscreen").css("display","block")})):(i.controls.addClass("mejs-offscreen").css("display","block"),i.container.find(".mejs-control").addClass("mejs-offscreen").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(){var n=this;n.controlsTimer!==null&&(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 r=this,u=mejs.MediaFeatures,e=i.getAttribute("autoplay"),s=!(typeof e=="undefined"||e===null||e==="false"),h,o,f;if(!r.created){if(r.created=!0,r.media=t,r.domNode=i,!(u.isAndroid&&r.options.AndroidUseNativeControls)&&!(u.isiPad&&r.options.iPadUseNativeControls)&&!(u.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(h in r.options.features)if(o=r.options.features[h],r["build"+o])try{r["build"+o](r,r.controls,r.layers,r.media)}catch(c){}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",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&&r.domNode.getAttribute("height")===null&&!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);f=null;r.media.addEventListener("timeupdate",function(){f!==this.duration&&(f=this.duration,mejs.Utility.calculateTimeFormat(f,r.options,r.options.framesPerSecond||25),r.updateDuration&&r.updateDuration(),r.updateCurrent&&r.updateCurrent(),r.setControlsSize())},!1);r.container.focusout(function(t){if(t.relatedTarget){var i=n(t.relatedTarget);r.keyboardAction&&i.parents(".mejs-container").length===0&&(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()});r.media.pluginType=="youtube"&&(u.isiOS||u.isAndroid)&&(r.container.find(".mejs-overlay-play").hide(),r.container.find(".mejs-poster").hide())}s&&t.pluginType=="native"&&r.play();r.options.success&&(typeof r.options.success=="string"?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&&t.controls.hide();t.options.error&&t.options.error(n)},setPlayerSize:function(t,i){var r=this;if(!r.options.setDimensions)return!1;if(typeof t!="undefined"&&(r.width=t),typeof i!="undefined"&&(r.height=i),r.height.toString().indexOf("%")>0||r.$node.css("max-width")!=="none"&&r.$node.css("max-width")!=="t.width"||r.$node[0].currentStyle&&r.$node[0].currentStyle.maxWidth==="100%"){var o=function(){return r.isVideo?r.media.videoWidth&&r.media.videoWidth>0?r.media.videoWidth:r.media.getAttribute("width")!==null?r.media.getAttribute("width"):r.options.defaultVideoWidth:r.options.defaultAudioWidth}(),e=function(){return r.isVideo?r.media.videoHeight&&r.media.videoHeight>0?r.media.videoHeight:r.media.getAttribute("height")!==null?r.media.getAttribute("height"):r.options.defaultVideoHeight:r.options.defaultAudioHeight}(),f=r.container.parent().closest(":visible").width(),s=r.container.parent().closest(":visible").height(),u=r.isVideo||!r.options.autosizeProgress?parseInt(f*e/o,10):e;isNaN(u)&&(u=s);r.container.parent().length>0&&r.container.parent()[0].tagName.toLowerCase()==="body"&&(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)},setControlsSize:function(){var i=this,o=0,t=0,r=i.controls.find(".mejs-time-rail"),u=i.controls.find(".mejs-time-total"),s=r.siblings(),f=s.last(),e=null;if(i.container.is(":visible")&&r.length&&r.is(":visible")){i.options&&!i.options.autosizeProgress&&(t=parseInt(r.css("width"),10));t!==0&&t||(s.each(function(){var t=n(this);t.css("position")!="absolute"&&t.is(":visible")&&(o+=n(this).outerWidth(!0))}),t=i.controls.width()-o-(r.outerWidth(!0)-r.width()));do r.width(t),u.width(t-(u.outerWidth(!0)-u.width())),f.css("position")!="absolute"&&(e=f.length?f.position():null,t--);while(e!==null&&e.top.toFixed(2)>0&&t>0);i.container.trigger("controlsresize")}},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");r.length===0&&(r=n('<img width="100%" height="100%" alt="" />').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(n){s.handleError(n);f.hide();o.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(i){t.hasFocus=n(i.target).closest(".mejs-container").length!==0&&n(i.target).closest(".mejs-container").attr("id")===t.$media.closest(".mejs-container").attr("id");return f.onkeydown(t,u,i)});f.globalBind("click",function(i){t.hasFocus=n(i.target).closest(".mejs-container").length!==0})},onkeydown:function(n,t,i){var r,e,u,f,o;if(n.hasFocus&&n.options.enableKeyboard)for(r=0,e=n.options.keyActions.length;r<e;r++)for(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,i),!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 n=this,i,t;n.container.prev(".mejs-offscreen").remove();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());n.media.pluginType!=="native"&&n.media.remove();delete mejs.players[n.id];typeof n.container=="object"&&n.container.remove();n.globalUnbind();delete n.node.player},rebuildtracks:function(){var n=this;n.findTracks();n.buildtracks(n,n.controls,n.layers,n.media)},resetSize:function(){var n=this;setTimeout(function(){n.setPlayerSize(n.width,n.height);n.setControlsSize()},50)}},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){var f=this,e=f.node?f.node.ownerDocument:document;i=t(i,f.id);i.d&&n(e).bind(i.d,r,u);i.w&&n(window).bind(i.w,r,u)};mejs.MediaElementPlayer.prototype.globalUnbind=function(i,r){var u=this,f=u.node?u.node.ownerDocument:document;i=t(i,u.id);i.d&&n(f).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,{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,t.options)),i.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0,t.options)),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"><span  class="mejs-time-total mejs-time-slider"><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();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 r=o.offset(),s=o.width(),c=0,f=0,l=0,i;i=n.originalEvent&&n.originalEvent.changedTouches?n.originalEvent.changedTouches[0].pageX:n.changedTouches?n.changedTouches[0].pageX:n.pageX;u.duration&&(i<r.left?i=r.left:i>s+r.left&&(i=s+r.left),l=i-r.left,c=l/s,f=c<=.02?0:c*u.duration,h&&f!==u.currentTime&&u.setCurrentTime(f),mejs.MediaFeatures.hasTouch||(e.css("left",l),b.html(mejs.Utility.secondsToTimeCode(f,t.options)),e.show()))},h=!1,v=!1,l=0,a=!1,k=t.options.autoRewind,d=function(){var n=u.currentTime,i=mejs.i18n.t("Time Slider"),r=mejs.Utility.secondsToTimeCode(n,t.options),f=u.duration;s.attr({"aria-label":i,"aria-valuemin":0,"aria-valuemax":f,"aria-valuenow":n,"aria-valuetext":r,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 f=n.keyCode,r=u.duration,i=u.currentTime,e=t.options.defaultSeekForwardInterval(r),o=t.options.defaultSeekBackwardInterval(r);switch(f){case 37:case 40:i-=o;break;case 39:case 38:i+=e;break;case 36:i=0;break;case 35:i=r;break;case 32:case 13:u.paused?u.play():u.pause();return;default:return}return i=i<0?0:i>=r?r:Math.floor(i),l=new Date,a||u.pause(),i<u.duration&&!a&&setTimeout(g,1100),u.setCurrentTime(i),n.preventDefault(),n.stopPropagation(),!1});o.bind("mousedown touchstart",function(n){(n.which===1||n.which===0)&&(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.container.on("controlsresize",function(){t.setProgressRail();t.setCurrentRail()});f.loaded=y;f.total=o;f.current=p;f.handle=w},setProgressRail:function(n){var r=this,t=n!==undefined?n.target:r.media,i=null;t&&t.buffered&&t.buffered.length>0&&t.buffered.end&&t.duration?i=t.buffered.end(t.buffered.length-1)/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)),r.loaded&&r.total&&r.loaded.width(r.total.width()*i))},setCurrentRail:function(){var n=this,t,i;n.media.currentTime!==undefined&&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">'+mejs.Utility.secondsToTimeCode(0,t.options)+"<\/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">'+mejs.Utility.secondsToTimeCode(f.options.duration,f.options)+"<\/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">'+mejs.Utility.secondsToTimeCode(f.options.duration,f.options)+"<\/span><\/div>").appendTo(i));f.durationD=f.controls.find(".mejs-duration");u.addEventListener("timeupdate",function(){t.updateDuration()},!1)},updateCurrent:function(){var n=this,t=n.media.currentTime;isNaN(t)&&(t=0);n.currenttime&&n.currenttime.html(mejs.Utility.secondsToTimeCode(t,n.options))},updateDuration:function(){var n=this,t=n.media.duration;n.options.duration>0&&(t=n.options.duration);isNaN(t)&&(t=0);n.container.toggleClass("mejs-long-video",t>3600);n.durationD&&t>0&&n.durationD.html(mejs.Utility.secondsToTimeCode(t,n.options))}})}(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,e=c=="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><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),o=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(!o.is(":visible")&&typeof t=="undefined"){o.show();h(n,!0);o.hide();return}n=Math.max(0,n);n=Math.min(n,1);n===0?(e.removeClass("mejs-mute").addClass("mejs-unmute"),e.children("button").attr("title",mejs.i18n.t("Unmute")).attr("aria-label",mejs.i18n.t("Unmute"))):(e.removeClass("mejs-unmute").addClass("mejs-mute"),e.children("button").attr("title",mejs.i18n.t("Mute")).attr("aria-label",mejs.i18n.t("Mute")));i=s.position();c=="vertical"?(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(c==="vertical"){if(r=s.height(),f=n.pageY-i.top,t=(r-f)/r,i.top===0||i.left===0)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);t===0?u.setMuted(!0):u.setMuted(!1);u.setVolume(t)},l=!1,v=!1;e.hover(function(){o.show();v=!0},function(){v=!1;l||c!="vertical"||o.hide()});w=function(){var n=Math.floor(u.volume*100);o.attr({"aria-label":mejs.i18n.t("Volume Slider"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,"aria-valuetext":n+"%",role:"slider",tabindex:0})};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(){l=!1;f.globalUnbind(".vol");v||c!="vertical"||o.hide()}),l=!0,!1}).bind("keydown",function(n){var i=n.keyCode,t=u.volume;switch(i){case 38:t=Math.min(t+.1,1);break;case 40:t=Math.max(0,t-.1);break;default:return!0}return l=!1,h(t),u.setVolume(t),!1});e.find("button").click(function(){u.setMuted(!u.muted)});e.find("button").bind("focus",function(){o.show()});u.addEventListener("volumechange",function(n){l||(u.muted?(h(0),e.removeClass("mejs-mute").addClass("mejs-unmute")):(h(u.volume),e.removeClass("mejs-unmute").addClass("mejs-mute")));w(n)},!1);t.options.startVolume===0&&u.setMuted(!0);u.pluginType==="native"&&u.setVolume(t.options.startVolume);f.container.on("controlsresize",function(){h(u.volume)})}}})}(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,fullscreenMode:"",buildfullscreen:function(t,i,r,u){var s;if(t.isVideo){t.isInIframe=window.location!=window.parent.location;u.addEventListener("play",function(){t.detectFullscreenMode()});var f=this,e=null,o=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).on("click",function(){var n=mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||t.isFullScreen;n?t.exitFullScreen():t.enterFullScreen()}).on("mouseover",function(){if(f.fullscreenMode=="plugin-hover"){e!==null&&(clearTimeout(e),delete e);var n=o.offset(),i=t.container.offset();u.positionFullscreenButton(n.left-i.left,n.top-i.top,!0)}}).on("mouseout",function(){f.fullscreenMode=="plugin-hover"&&(e!==null&&(clearTimeout(e),delete e),e=setTimeout(function(){u.hideFullscreenButton()},1500))});t.fullscreenBtn=o;f.globalBind("keydown",function(n){n.keyCode==27&&(mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||f.isFullScreen)&&t.exitFullScreen()});f.normalHeight=0;f.normalWidth=0;mejs.MediaFeatures.hasTrueNativeFullScreen&&(s=function(){t.isFullScreen&&(mejs.MediaFeatures.isFullScreen()?(t.isNativeFullScreen=!0,t.setControlsSize()):(t.isNativeFullScreen=!1,t.exitFullScreen()))},t.globalBind(mejs.MediaFeatures.fullScreenEventName,s))}},detectFullscreenMode:function(){var t=this,n="",i=mejs.MediaFeatures;return i.hasTrueNativeFullScreen&&t.media.pluginType==="native"?n="native-native":i.hasTrueNativeFullScreen&&t.media.pluginType!=="native"&&!i.hasFirefoxPluginMovingProblem?n="plugin-native":t.usePluginFullScreen?mejs.MediaFeatures.supportsPointerEvents?(n="plugin-click",t.createPluginClickThrough()):n="plugin-hover":n="fullwindow",t.fullscreenMode=n,n},isPluginClickThroughCreated:!1,createPluginClickThrough:function(){var t=this;if(!t.isPluginClickThroughCreated){var u=!1,f=function(){if(u){for(var n in i)i[n].hide();t.fullscreenBtn.css("pointer-events","");t.controls.css("pointer-events","");t.media.removeEventListener("click",t.clickToPlayPauseCallback);u=!1}},i={},e=["top","left","right","bottom"],r,o,s=function(){var f=fullscreenBtn.offset().left-t.container.offset().left,n=fullscreenBtn.offset().top-t.container.offset().top,o=fullscreenBtn.outerWidth(!0),u=fullscreenBtn.outerHeight(!0),e=t.container.width(),s=t.container.height();for(r in i)i[r].css({position:"absolute",top:0,left:0});i.top.width(e).height(n);i.left.width(f).height(u).css({top:n});i.right.width(e-f-o).height(u).css({top:n,left:f+o});i.bottom.width(e).height(s-u-n).css({top:n+u})};for(t.globalBind("resize",function(){s()}),r=0,o=e.length;r<o;r++)i[e[r]]=n('<div class="mejs-fullscreen-hover" />').appendTo(t.container).mouseover(f).hide();fullscreenBtn.on("mouseover",function(){if(!t.isFullScreen){var n=fullscreenBtn.offset(),f=player.container.offset();media.positionFullscreenButton(n.left-f.left,n.top-f.top,!1);t.fullscreenBtn.css("pointer-events","none");t.controls.css("pointer-events","none");t.media.addEventListener("click",t.clickToPlayPauseCallback);for(r in i)i[r].show();s();u=!0}});media.addEventListener("fullscreenchange",function(){t.isFullScreen=!t.isFullScreen;t.isFullScreen?t.media.removeEventListener("click",t.clickToPlayPauseCallback):t.media.addEventListener("click",t.clickToPlayPauseCallback);f()});t.globalBind("mousemove",function(n){if(u){var i=fullscreenBtn.offset();(n.pageY<i.top||n.pageY>i.top+fullscreenBtn.outerHeight(!0)||n.pageX<i.left||n.pageX>i.left+fullscreenBtn.outerWidth(!0))&&(fullscreenBtn.css("pointer-events",""),t.controls.css("pointer-events",""),u=!1)}});t.isPluginClickThroughCreated=!0}},cleanfullscreen:function(n){n.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var t=this;if(mejs.MediaFeatures.hasiOSFullScreen){t.media.webkitEnterFullscreen();return}n(document.documentElement).addClass("mejs-fullscreen");t.normalHeight=t.container.height();t.normalWidth=t.container.width();t.fullscreenMode==="native-native"||t.fullscreenMode==="plugin-native"?(mejs.MediaFeatures.requestFullScreen(t.container[0]),t.isInIframe&&setTimeout(function i(){if(t.isNativeFullScreen){var u=n(window).width(),r=screen.width,f=Math.abs(r-u),e=r*.002;f>e?t.exitFullScreen():setTimeout(i,500)}},1e3)):t.fullscreeMode=="fullwindow";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%"),setTimeout(function(){var i=n(window),r=i.width(),u=i.height();t.media.setVideoSize(r,u)},500));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");t.container.trigger("enteredfullscreen")},exitFullScreen:function(){var t=this;clearTimeout(t.containerSizeTimeout);mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||t.isFullScreen)&&mejs.MediaFeatures.cancelFullScreen();n(document.documentElement).removeClass("mejs-fullscreen");t.container.removeClass("mejs-container-fullscreen").width(t.normalWidth).height(t.normalHeight);t.media.pluginType==="native"?t.$media.width(t.normalWidth).height(t.normalHeight):(t.container.find(".mejs-shim").width(t.normalWidth).height(t.normalHeight),t.media.setVideoSize(t.normalWidth,t.normalHeight));t.layers.children("div").width(t.normalWidth).height(t.normalHeight);t.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen");t.setControlsSize();t.isFullScreen=!1;t.container.find(".mejs-captions-text").css("font-size","");t.container.find(".mejs-captions-position").css("bottom","");t.container.trigger("exitedfullscreen")}})}(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 e=this,f,a,h,w,v;if(e.media.pluginType=="native"){var s=null,c=null,l=null,y=null,o=[],p=!1;for(f=0,a=e.options.speeds.length;f<a;f++)h=e.options.speeds[f],typeof h=="string"?(o.push({name:h+e.options.speedChar,value:h}),h===e.options.defaultSpeed&&(p=!0)):(o.push(h),h.value===e.options.defaultSpeed&&(p=!0));for(p||o.push({name:e.options.defaultSpeed+e.options.speedChar,value:e.options.defaultSpeed}),o.sort(function(n,t){return parseFloat(t.value)-parseFloat(n.value)}),w=function(n){for(f=0,a=o.length;f<a;f++)if(o[f].value===n)return o[f].name},v='<div class="mejs-button mejs-speed-button"><button type="button">'+w(e.options.defaultSpeed)+'<\/button><div class="mejs-speed-selector"><ul>',f=0,il=o.length;f<il;f++)y=e.id+"-speed-"+o[f].value,v+='<li><input type="radio" name="speed" value="'+o[f].value+'" id="'+y+'" '+(o[f].value===e.options.defaultSpeed?" checked":"")+' /><label for="'+y+'" '+(o[f].value===e.options.defaultSpeed?' class="mejs-speed-selected"':"")+">"+o[f].name+"<\/label><\/li>";v+="<\/ul><\/div><\/div>";s=n(v).appendTo(i);c=s.find(".mejs-speed-selector");l=e.options.defaultSpeed;u.addEventListener("loadedmetadata",function(){l&&(u.playbackRate=parseFloat(l))},!0);c.on("click",'input[type="radio"]',function(){var t=n(this).attr("value");l=t;u.playbackRate=parseFloat(t);s.find("button").html(w(t));s.find(".mejs-speed-selected").removeClass("mejs-speed-selected");s.find('input[type="radio"]:checked').next().addClass("mejs-speed-selected")});s.one("mouseenter focusin",function(){c.height(s.find(".mejs-speed-selector ul").outerHeight(!0)+s.find(".mejs-speed-translations").outerHeight(!0)).css("top",-1*c.height()+"px")})}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{startLanguage:"",tracksText:mejs.i18n.t("Captions/Subtitles"),tracksAriaLive:!1,hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""});n.extend(MediaElementPlayer.prototype,{hasChapters:!1,cleartracks:function(n){n&&(n.captions&&n.captions.remove(),n.chapters&&n.chapters.remove(),n.captionsText&&n.captionsText.remove(),n.captionsButton&&n.captionsButton.remove())},buildtracks:function(t,i,r,u){var e,s,f,o;if(t.tracks.length!==0){if(e=this,s=e.options.tracksAriaLive?'role="log" aria-live="assertive" aria-atomic="false"':"",e.domNode.textTracks)for(f=e.domNode.textTracks.length-1;f>=0;f--)e.domNode.textTracks[f].mode="hidden";for(e.cleartracks(t,i,r,u),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" '+s+'><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++)t.tracks[f].kind=="subtitles"&&o++;if(e.options.toggleCaptionsButtonWhenOnlyOne&&o==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").removeClass("mejs-offscreen")}).on("click","input[type=radio]",function(){lang=this.value;t.setTrack(lang)});t.captionsButton.on("mouseleave focusout",function(){n(this).find(".mejs-captions-selector").addClass("mejs-offscreen")})}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.removeClass("mejs-offscreen"),t.chapters.fadeIn(200).height(t.chapters.find(".mejs-chapter").outerHeight()))},function(){t.hasChapters&&!u.paused&&t.chapters.fadeOut(200,function(){n(this).addClass("mejs-offscreen");n(this).css("display","block")})});e.container.on("controlsresize",function(){e.adjustLanguageBox()});t.node.getAttribute("autoplay")!==null&&t.chapters.addClass("mejs-offscreen")}},setTrack:function(n){var t=this,i;if(n=="none")t.selectedTrack=null,t.captionsButton.removeClass("mejs-captions-enabled");else for(i=0;i<t.tracks.length;i++)if(t.tracks[i].srclang==n){t.selectedTrack===null&&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=typeof n=="string"&&/<tt\s+xml/ig.exec(n)?mejs.TrackFormatParser.dfxp.parse(n):mejs.TrackFormatParser.webvtt.parse(n);u();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.removeTrackButton(i.srclang);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()},removeTrackButton:function(n){var t=this;t.captionsButton.find("input[value="+n+"]").closest("li").remove();t.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(n.tracks[i].kind=="subtitles"&&n.tracks[i].isLoaded){t=!0;break}t||(n.captionsButton.hide(),n.setControlsSize())}},displayCaptions:function(){if(typeof this.tracks!="undefined"){var n=this,t,i=n.selectedTrack;if(i!==null&&i.isLoaded){for(t=0;t<i.entries.times.length;t++)if(n.media.currentTime>=i.entries.times[t].start&&n.media.currentTime<=i.entries.times[t].stop){n.captionsText.html(i.entries.text[t]).attr("class","mejs-captions-text "+(i.entries.times[t].identifier||""));n.captions.show().height(0);return}n.captions.hide()}else n.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(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,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){t.showSlide(n);return}},displayChapters:function(){for(var n=this,t=0;t<n.tracks.length;t++)if(n.tracks[t].kind=="chapters"&&n.tracks[t].isLoaded){n.drawChapters(n.tracks[t]);n.hasChapters=!0;break}},drawChapters:function(t){var r=this,i,e,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&&u+f<100)&&(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,r.options)+"&ndash;"+mejs.Utility.secondsToTimeCode(t.entries.times[i].stop,r.options)+"<\/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 i=0,r=mejs.TrackFormatParser.split2(t,/\r?\n/),e={text:[],times:[]},u,f,o;i<r.length;i++){if(u=this.pattern_timecode.exec(r[i]),u&&i<r.length){for(i-1>=0&&r[i-1]!==""&&(o=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+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1<\/a>");e.text.push(f);e.times.push({identifier:o,start:mejs.Utility.convertSMPTEtoSeconds(u[1])===0?.2:mejs.Utility.convertSMPTEtoSeconds(u[1]),stop:mejs.Utility.convertSMPTEtoSeconds(u[3]),settings:u[5]})}o=""}return e}},dfxp:{parse:function(t){var o,s,r,h;t=n(t).filter("tt");var i=0,c=t.children("div").eq(0),u=c.find("p"),l=t.find("#"+c.attr("style")),f,a,e={text:[],times:[]};if(l.length&&(o=l.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);r.start===0&&(r.start=.2);e.times.push(r);a=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>");e.text.push(a);e.times.start===0&&(e.times.start=2)}return e}},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,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;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,{skipBackInterval:30,skipBackText:mejs.i18n.t("Skip back %1 seconds")});n.extend(MediaElementPlayer.prototype,{buildskipback:function(t,i,r,u){var f=this,e=f.options.skipBackText.replace("%1",f.options.skipBackInterval),o=n('<div class="mejs-button mejs-skip-back-button"><button type="button" aria-controls="'+f.id+'" title="'+e+'" aria-label="'+e+'">'+f.options.skipBackInterval+"<\/button><\/div>").appendTo(i).click(function(){u.setCurrentTime(Math.max(u.currentTime-f.options.skipBackInterval,0));n(this).find("button").blur()})}})}(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");typeof f!="undefined"&&(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.$)