var mejs=mejs||{};mejs.version="2.13.0";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".split(",")}],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".split(",")}],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(b){return encodeURIComponent(b)},escapeHTML:function(b){return b.toString().split("&").join("&amp;").split("<").join("&lt;").split('"').join("&quot;")},absolutizeUrl:function(b){var a=document.createElement("div");a.innerHTML='<a href="'+this.escapeHTML(b)+'">x</a>';return a.firstChild.href},getScriptPath:function(b){for(var a=0,c,e="",d="",f,g,h=document.getElementsByTagName("script"),k=h.length,j=b.length;a<k;a++){f=h[a].src;c=f.lastIndexOf("/");-1<c?(g=f.substring(c+
1),f=f.substring(0,c+1)):(g=f,f="");for(c=0;c<j;c++)if(d=b[c],d=g.indexOf(d),-1<d){e=f;break}if(""!==e)break}return e},secondsToTimeCode:function(b,a,c,e){"undefined"==typeof c?c=!1:"undefined"==typeof e&&(e=25);var d=Math.floor(b/3600)%24,f=Math.floor(b/60)%60,g=Math.floor(b%60),b=Math.floor((b%1*e).toFixed(3));return(a||0<d?(10>d?"0"+d:d)+":":"")+(10>f?"0"+f:f)+":"+(10>g?"0"+g:g)+(c?":"+(10>b?"0"+b:b):"")},timeCodeToSeconds:function(b,a,c,e){"undefined"==typeof c?c=!1:"undefined"==typeof e&&(e=
25);var b=b.split(":"),a=parseInt(b[0],10),d=parseInt(b[1],10),f=parseInt(b[2],10),g=0;c&&(g=parseInt(b[3])/e);return 3600*a+60*d+f+g},convertSMPTEtoSeconds:function(b){if("string"!=typeof b)return!1;for(var b=b.replace(",","."),a=0,c=-1!=b.indexOf(".")?b.split(".")[1].length:0,e=1,b=b.split(":").reverse(),d=0;d<b.length;d++)e=1,0<d&&(e=Math.pow(60,d)),a+=Number(b[d])*e;return Number(a.toFixed(c))},removeSwf:function(b){var a=document.getElementById(b);a&&/object|embed/i.test(a.nodeName)&&(mejs.MediaFeatures.isIE?
(a.style.display="none",function(){4==a.readyState?mejs.Utility.removeObjectInIE(b):setTimeout(arguments.callee,10)}()):a.parentNode.removeChild(a))},removeObjectInIE:function(b){if(b=document.getElementById(b)){for(var a in b)"function"==typeof b[a]&&(b[a]=null);b.parentNode.removeChild(b)}}};
mejs.PluginDetector={hasPluginVersion:function(b,a){var c=this.plugins[b];a[1]=a[1]||0;a[2]=a[2]||0;return c[0]>a[0]||c[0]==a[0]&&c[1]>a[1]||c[0]==a[0]&&c[1]==a[1]&&c[2]>=a[2]?!0:!1},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(b,a,c,e,d){this.plugins[b]=this.detectPlugin(a,c,e,d)},detectPlugin:function(b,a,c,e){var d=[0,0,0],f;if("undefined"!=typeof this.nav.plugins&&"object"==typeof this.nav.plugins[b]){if((c=this.nav.plugins[b].description)&&!("undefined"!=
typeof this.nav.mimeTypes&&this.nav.mimeTypes[a]&&!this.nav.mimeTypes[a].enabledPlugin)){d=c.replace(b,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".");for(b=0;b<d.length;b++)d[b]=parseInt(d[b].match(/\d+/),10)}}else if("undefined"!=typeof window.ActiveXObject)try{(f=new ActiveXObject(c))&&(d=e(f))}catch(g){}return d}};
mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(b){var a=[];if(b=b.GetVariable("$version"))b=b.split(" ")[1].split(","),a=[parseInt(b[0],10),parseInt(b[1],10),parseInt(b[2],10)];return a});
mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(b){var a=[0,0,0,0],c=function(a,c,b,g){for(;a.isVersionSupported(c[0]+"."+c[1]+"."+c[2]+"."+c[3]);)c[b]+=g;c[b]-=g};c(b,a,0,1);c(b,a,1,1);c(b,a,2,1E4);c(b,a,2,1E3);c(b,a,2,100);c(b,a,2,10);c(b,a,2,1);c(b,a,3,1);return a});
mejs.MediaFeatures={init:function(){var b=this,a=document,c=mejs.PluginDetector.nav,e=mejs.PluginDetector.ua.toLowerCase(),d,f=["source","track","audio","video"];b.isiPad=null!==e.match(/ipad/i);b.isiPhone=null!==e.match(/iphone/i);b.isiOS=b.isiPhone||b.isiPad;b.isAndroid=null!==e.match(/android/i);b.isBustedAndroid=null!==e.match(/android 2\.[12]/);b.isBustedNativeHTTPS="https:"===location.protocol&&(null!==e.match(/android [12]\./)||null!==e.match(/macintosh.* version.* safari/));b.isIE=-1!=c.appName.toLowerCase().indexOf("microsoft");
b.isChrome=null!==e.match(/chrome/gi);b.isFirefox=null!==e.match(/firefox/gi);b.isWebkit=null!==e.match(/webkit/gi);b.isGecko=null!==e.match(/gecko/gi)&&!b.isWebkit;b.isOpera=null!==e.match(/opera/gi);b.hasTouch="ontouchstart"in window&&null!=window.ontouchstart;b.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect;for(c=0;c<f.length;c++)d=document.createElement(f[c]);b.supportsMediaTag="undefined"!==typeof d.canPlayType||b.isBustedAndroid;
try{d.canPlayType("video/mp4")}catch(g){b.supportsMediaTag=!1}b.hasSemiNativeFullScreen="undefined"!==typeof d.webkitEnterFullscreen;b.hasWebkitNativeFullScreen="undefined"!==typeof d.webkitRequestFullScreen;b.hasMozNativeFullScreen="undefined"!==typeof d.mozRequestFullScreen;b.hasTrueNativeFullScreen=b.hasWebkitNativeFullScreen||b.hasMozNativeFullScreen;b.nativeFullScreenEnabled=b.hasTrueNativeFullScreen;b.hasMozNativeFullScreen&&(b.nativeFullScreenEnabled=d.mozFullScreenEnabled);this.isChrome&&
(b.hasSemiNativeFullScreen=!1);b.hasTrueNativeFullScreen&&(b.fullScreenEventName=b.hasWebkitNativeFullScreen?"webkitfullscreenchange":"mozfullscreenchange",b.isFullScreen=function(){if(d.mozRequestFullScreen)return a.mozFullScreen;if(d.webkitRequestFullScreen)return a.webkitIsFullScreen},b.requestFullScreen=function(a){b.hasWebkitNativeFullScreen?a.webkitRequestFullScreen():b.hasMozNativeFullScreen&&a.mozRequestFullScreen()},b.cancelFullScreen=function(){b.hasWebkitNativeFullScreen?document.webkitCancelFullScreen():
b.hasMozNativeFullScreen&&document.mozCancelFullScreen()});b.hasSemiNativeFullScreen&&e.match(/mac os x 10_5/i)&&(b.hasNativeFullScreen=!1,b.hasSemiNativeFullScreen=!1)}};mejs.MediaFeatures.init();
mejs.HtmlMediaElement={pluginType:"native",isFullScreen:!1,setCurrentTime:function(b){this.currentTime=b},setMuted:function(b){this.muted=b},setVolume:function(b){this.volume=b},stop:function(){this.pause()},setSrc:function(b){for(var a=this.getElementsByTagName("source");0<a.length;)this.removeChild(a[0]);if("string"==typeof b)this.src=b;else for(var c,a=0;a<b.length;a++)if(c=b[a],this.canPlayType(c.type)){this.src=c.src;break}},setVideoSize:function(b,a){this.width=b;this.height=a}};
mejs.PluginMediaElement=function(b,a,c){this.id=b;this.pluginType=a;this.src=c;this.events={};this.attributes={}};
mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:!1,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:!0,ended:!1,seeking:!1,duration:0,error:null,tagName:"",muted:!1,volume:1,currentTime:0,play:function(){null!=this.pluginApi&&("youtube"==this.pluginType?this.pluginApi.playVideo():this.pluginApi.playMedia(),this.paused=!1)},load:function(){null!=this.pluginApi&&("youtube"!=this.pluginType&&this.pluginApi.loadMedia(),this.paused=!1)},pause:function(){null!=
this.pluginApi&&("youtube"==this.pluginType?this.pluginApi.pauseVideo():this.pluginApi.pauseMedia(),this.paused=!0)},stop:function(){null!=this.pluginApi&&("youtube"==this.pluginType?this.pluginApi.stopVideo():this.pluginApi.stopMedia(),this.paused=!0)},canPlayType:function(b){var a,c,e,d=mejs.plugins[this.pluginType];for(a=0;a<d.length;a++)if(e=d[a],mejs.PluginDetector.hasPluginVersion(this.pluginType,e.version))for(c=0;c<e.types.length;c++)if(b==e.types[c])return"probably";return""},positionFullscreenButton:function(b,
a,c){null!=this.pluginApi&&this.pluginApi.positionFullscreenButton&&this.pluginApi.positionFullscreenButton(Math.floor(b),Math.floor(a),c)},hideFullscreenButton:function(){null!=this.pluginApi&&this.pluginApi.hideFullscreenButton&&this.pluginApi.hideFullscreenButton()},setSrc:function(b){if("string"==typeof b)this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(b)),this.src=mejs.Utility.absolutizeUrl(b);else{var a,c;for(a=0;a<b.length;a++)if(c=b[a],this.canPlayType(c.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(c.src));
this.src=mejs.Utility.absolutizeUrl(b);break}}},setCurrentTime:function(b){null!=this.pluginApi&&("youtube"==this.pluginType?this.pluginApi.seekTo(b):this.pluginApi.setCurrentTime(b),this.currentTime=b)},setVolume:function(b){null!=this.pluginApi&&("youtube"==this.pluginType?this.pluginApi.setVolume(100*b):this.pluginApi.setVolume(b),this.volume=b)},setMuted:function(b){null!=this.pluginApi&&("youtube"==this.pluginType?(b?this.pluginApi.mute():this.pluginApi.unMute(),this.muted=b,this.dispatchEvent("volumechange")):
this.pluginApi.setMuted(b),this.muted=b)},setVideoSize:function(b,a){this.pluginElement.style&&(this.pluginElement.style.width=b+"px",this.pluginElement.style.height=a+"px");null!=this.pluginApi&&this.pluginApi.setVideoSize&&this.pluginApi.setVideoSize(b,a)},setFullscreen:function(b){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.pluginApi.setFullscreen(b)},enterFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!0)},exitFullScreen:function(){null!=
this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!1)},addEventListener:function(b,a){this.events[b]=this.events[b]||[];this.events[b].push(a)},removeEventListener:function(b,a){if(!b)return this.events={},!0;var c=this.events[b];if(!c)return!0;if(!a)return this.events[b]=[],!0;for(i=0;i<c.length;i++)if(c[i]===a)return this.events[b].splice(i,1),!0;return!1},dispatchEvent:function(b){var a,c,e=this.events[b];if(e){c=Array.prototype.slice.call(arguments,1);for(a=0;a<e.length;a++)e[a].apply(null,
c)}},hasAttribute:function(b){return b in this.attributes},removeAttribute:function(b){delete this.attributes[b]},getAttribute:function(b){return this.hasAttribute(b)?this.attributes[b]:""},setAttribute:function(b,a){this.attributes[b]=a},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id);mejs.MediaPluginBridge.unregisterPluginElement(this.pluginElement.id)}};
mejs.MediaPluginBridge={pluginMediaElements:{},htmlMediaElements:{},registerPluginElement:function(b,a,c){this.pluginMediaElements[b]=a;this.htmlMediaElements[b]=c},unregisterPluginElement:function(b){delete this.pluginMediaElements[b];delete this.htmlMediaElements[b]},initPlugin:function(b){var a=this.pluginMediaElements[b],c=this.htmlMediaElements[b];if(a){switch(a.pluginType){case "flash":a.pluginElement=a.pluginApi=document.getElementById(b);break;case "silverlight":a.pluginElement=document.getElementById(a.id),
a.pluginApi=a.pluginElement.Content.MediaElementJS}null!=a.pluginApi&&a.success&&a.success(a,c)}},fireEvent:function(b,a,c){var e,d;if(b=this.pluginMediaElements[b]){a={type:a,target:b};for(e in c)b[e]=c[e],a[e]=c[e];d=c.bufferedTime||0;a.target.buffered=a.buffered={start:function(){return 0},end:function(){return d},length:1};b.dispatchEvent(a.type,a)}}};
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:0.8,success:function(){},error:function(){}};mejs.MediaElement=function(b,a){return mejs.HtmlMediaElementShim.create(b,a)};
mejs.HtmlMediaElementShim={create:function(b,a){var c=mejs.MediaElementDefaults,e="string"==typeof b?document.getElementById(b):b,d=e.tagName.toLowerCase(),f="audio"===d||"video"===d,g=f?e.getAttribute("src"):e.getAttribute("href"),d=e.getAttribute("poster"),h=e.getAttribute("autoplay"),k=e.getAttribute("preload"),j=e.getAttribute("controls"),l;for(l in a)c[l]=a[l];d="undefined"==typeof d||null===d?"":d;k="undefined"==typeof k||null===k||"false"===k?"none":k;h=!("undefined"==typeof h||null===h||"false"===
h);j=!("undefined"==typeof j||null===j||"false"===j);l=this.determinePlayback(e,c,mejs.MediaFeatures.supportsMediaTag,f,"undefined"==typeof g||null===g||""==g?null:g);l.url=null!==l.url?mejs.Utility.absolutizeUrl(l.url):"";if("native"==l.method)return mejs.MediaFeatures.isBustedAndroid&&(e.src=l.url,e.addEventListener("click",function(){e.play()},!1)),this.updateNative(l,c,h,k);if(""!==l.method)return this.createPlugin(l,c,d,h,k,j);this.createErrorMessage(l,c,d);return this},determinePlayback:function(b,
a,c,e,d){var f=[],g,h,k,j={method:"",url:"",htmlMediaElement:b,isVideo:"audio"!=b.tagName.toLowerCase()},l;if("undefined"!=typeof a.type&&""!==a.type)if("string"==typeof a.type)f.push({type:a.type,url:d});else for(g=0;g<a.type.length;g++)f.push({type:a.type[g],url:d});else if(null!==d)k=this.formatType(d,b.getAttribute("type")),f.push({type:k,url:d});else for(g=0;g<b.childNodes.length;g++)h=b.childNodes[g],1==h.nodeType&&"source"==h.tagName.toLowerCase()&&(d=h.getAttribute("src"),k=this.formatType(d,
h.getAttribute("type")),h=h.getAttribute("media"),(!h||!window.matchMedia||window.matchMedia&&window.matchMedia(h).matches)&&f.push({type:k,url:d}));!e&&0<f.length&&null!==f[0].url&&-1<this.getTypeFromFile(f[0].url).indexOf("audio")&&(j.isVideo=!1);mejs.MediaFeatures.isBustedAndroid&&(b.canPlayType=function(a){return a.match(/video\/(mp4|m4v)/gi)!==null?"maybe":""});if(c&&("auto"===a.mode||"auto_plugin"===a.mode||"native"===a.mode)&&!(mejs.MediaFeatures.isBustedNativeHTTPS&&!0===a.httpsBasicAuthSite)){e||
(g=document.createElement(j.isVideo?"video":"audio"),b.parentNode.insertBefore(g,b),b.style.display="none",j.htmlMediaElement=b=g);for(g=0;g<f.length;g++)if(""!==b.canPlayType(f[g].type).replace(/no/,"")||""!==b.canPlayType(f[g].type.replace(/mp3/,"mpeg")).replace(/no/,"")){j.method="native";j.url=f[g].url;break}if("native"===j.method&&(null!==j.url&&(b.src=j.url),"auto_plugin"!==a.mode))return j}if("auto"===a.mode||"auto_plugin"===a.mode||"shim"===a.mode)for(g=0;g<f.length;g++){k=f[g].type;for(b=
0;b<a.plugins.length;b++){d=a.plugins[b];h=mejs.plugins[d];for(c=0;c<h.length;c++)if(l=h[c],null==l.version||mejs.PluginDetector.hasPluginVersion(d,l.version))for(e=0;e<l.types.length;e++)if(k==l.types[e])return j.method=d,j.url=f[g].url,j}}if("auto_plugin"===a.mode&&"native"===j.method)return j;""===j.method&&0<f.length&&(j.url=f[0].url);return j},formatType:function(b,a){return b&&!a?this.getTypeFromFile(b):a&&~a.indexOf(";")?a.substr(0,a.indexOf(";")):a},getTypeFromFile:function(b){b=b.split("?")[0];
b=b.substring(b.lastIndexOf(".")+1).toLowerCase();return(/(mp4|m4v|ogg|ogv|webm|webmv|flv|wmv|mpeg|mov)/gi.test(b)?"video":"audio")+"/"+this.getTypeFromExtension(b)},getTypeFromExtension:function(b){switch(b){case "mp4":case "m4v":return"mp4";case "webm":case "webma":case "webmv":return"webm";case "ogg":case "oga":case "ogv":return"ogg";default:return b}},createErrorMessage:function(b,a,c){var e=b.htmlMediaElement,d=document.createElement("div");d.className="me-cannotplay";try{d.style.width=e.width+
"px",d.style.height=e.height+"px"}catch(f){}d.innerHTML=a.customError?a.customError:""!==c?'<a href="'+b.url+'"><img src="'+c+'" width="100%" height="100%" /></a>':'<a href="'+b.url+'"><span>'+mejs.i18n.t("Download File")+"</span></a>";e.parentNode.insertBefore(d,e);e.style.display="none";a.error(e)},createPlugin:function(b,a,c,e,d,f){var c=b.htmlMediaElement,g=1,h=1,k="me_"+b.method+"_"+mejs.meIndex++,j=new mejs.PluginMediaElement(k,b.method,b.url),l=document.createElement("div"),m;j.tagName=c.tagName;
for(m=0;m<c.attributes.length;m++){var n=c.attributes[m];!0==n.specified&&j.setAttribute(n.name,n.value)}for(m=c.parentNode;null!==m&&"body"!=m.tagName.toLowerCase();){if("p"==m.parentNode.tagName.toLowerCase()){m.parentNode.parentNode.insertBefore(m,m.parentNode);break}m=m.parentNode}b.isVideo?(g=0<a.pluginWidth?a.pluginWidth:0<a.videoWidth?a.videoWidth:null!==c.getAttribute("width")?c.getAttribute("width"):a.defaultVideoWidth,h=0<a.pluginHeight?a.pluginHeight:0<a.videoHeight?a.videoHeight:null!==
c.getAttribute("height")?c.getAttribute("height"):a.defaultVideoHeight,g=mejs.Utility.encodeUrl(g),h=mejs.Utility.encodeUrl(h)):a.enablePluginDebug&&(g=320,h=240);j.success=a.success;mejs.MediaPluginBridge.registerPluginElement(k,j,c);l.className="me-plugin";l.id=k+"_container";b.isVideo?c.parentNode.insertBefore(l,c):document.body.insertBefore(l,document.body.childNodes[0]);e=["id="+k,"isvideo="+(b.isVideo?"true":"false"),"autoplay="+(e?"true":"false"),"preload="+d,"width="+g,"startvolume="+a.startVolume,
"timerrate="+a.timerRate,"flashstreamer="+a.flashStreamer,"height="+h,"pseudostreamstart="+a.pseudoStreamingStartQueryParam];null!==b.url&&("flash"==b.method?e.push("file="+mejs.Utility.encodeUrl(b.url)):e.push("file="+b.url));a.enablePluginDebug&&e.push("debug=true");a.enablePluginSmoothing&&e.push("smoothing=true");a.enablePseudoStreaming&&e.push("pseudostreaming=true");f&&e.push("controls=true");a.pluginVars&&(e=e.concat(a.pluginVars));switch(b.method){case "silverlight":l.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+
k+'" name="'+k+'" width="'+g+'" height="'+h+'" class="mejs-shim"><param name="initParams" value="'+e.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="'+a.pluginPath+a.silverlightName+'" /></object>';break;case "flash":mejs.MediaFeatures.isIE?(b=document.createElement("div"),l.appendChild(b),b.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+
k+'" width="'+g+'" height="'+h+'" class="mejs-shim"><param name="movie" value="'+a.pluginPath+a.flashName+"?x="+new Date+'" /><param name="flashvars" value="'+e.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" /></object>'):l.innerHTML='<embed id="'+k+'" name="'+k+'" 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="'+
a.pluginPath+a.flashName+'" flashvars="'+e.join("&")+'" width="'+g+'" height="'+h+'" class="mejs-shim"></embed>';break;case "youtube":a=b.url.substr(b.url.lastIndexOf("=")+1);youtubeSettings={container:l,containerId:l.id,pluginMediaElement:j,pluginId:k,videoId:a,height:h,width:g};mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])?mejs.YouTubeApi.createFlash(youtubeSettings):mejs.YouTubeApi.enqueueIframe(youtubeSettings);break;case "vimeo":j.vimeoid=b.url.substr(b.url.lastIndexOf("/")+1),l.innerHTML=
'<iframe src="http://player.vimeo.com/video/'+j.vimeoid+'?portrait=0&byline=0&title=0" width="'+g+'" height="'+h+'" frameborder="0" class="mejs-shim"></iframe>'}c.style.display="none";c.removeAttribute("autoplay");return j},updateNative:function(b,a){var c=b.htmlMediaElement,e;for(e in mejs.HtmlMediaElement)c[e]=mejs.HtmlMediaElement[e];a.success(c,c);return c}};
mejs.YouTubeApi={isIframeStarted:!1,isIframeLoaded:!1,loadIframeApi:function(){if(!this.isIframeStarted){var b=document.createElement("script");b.src="//www.youtube.com/player_api";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a);this.isIframeStarted=!0}},iframeQueue:[],enqueueIframe:function(b){this.isLoaded?this.createIframe(b):(this.loadIframeApi(),this.iframeQueue.push(b))},createIframe:function(b){var a=b.pluginMediaElement,c=new YT.Player(b.containerId,{height:b.height,
width:b.width,videoId:b.videoId,playerVars:{controls:0},events:{onReady:function(){b.pluginMediaElement.pluginApi=c;mejs.MediaPluginBridge.initPlugin(b.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(c,a,"timeupdate")},250)},onStateChange:function(b){mejs.YouTubeApi.handleStateChange(b.data,c,a)}}})},createEvent:function(b,a,c){c={type:c,target:a};if(b&&b.getDuration){a.currentTime=c.currentTime=b.getCurrentTime();a.duration=c.duration=b.getDuration();c.paused=a.paused;c.ended=a.ended;
c.muted=b.isMuted();c.volume=b.getVolume()/100;c.bytesTotal=b.getVideoBytesTotal();c.bufferedBytes=b.getVideoBytesLoaded();var e=c.bufferedBytes/c.bytesTotal*c.duration;c.target.buffered=c.buffered={start:function(){return 0},end:function(){return e},length:1}}a.dispatchEvent(c.type,c)},iFrameReady:function(){for(this.isIframeLoaded=this.isLoaded=!0;0<this.iframeQueue.length;)this.createIframe(this.iframeQueue.pop())},flashPlayers:{},createFlash:function(b){this.flashPlayers[b.pluginId]=b;var a,c=
"//www.youtube.com/apiplayer?enablejsapi=1&amp;playerapiid="+b.pluginId+"&amp;version=3&amp;autoplay=0&amp;controls=0&amp;modestbranding=1&loop=0";mejs.MediaFeatures.isIE?(a=document.createElement("div"),b.container.appendChild(a),a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+b.pluginId+'" width="'+b.width+'" height="'+b.height+'" class="mejs-shim"><param name="movie" value="'+c+'" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /></object>'):
b.container.innerHTML='<object type="application/x-shockwave-flash" id="'+b.pluginId+'" data="'+c+'" width="'+b.width+'" height="'+b.height+'" style="visibility: visible; " class="mejs-shim"><param name="allowScriptAccess" value="always"><param name="wmode" value="transparent"></object>'},flashReady:function(b){var a=this.flashPlayers[b],c=document.getElementById(b),e=a.pluginMediaElement;e.pluginApi=e.pluginElement=c;mejs.MediaPluginBridge.initPlugin(b);c.cueVideoById(a.videoId);b=a.containerId+
"_callback";window[b]=function(a){mejs.YouTubeApi.handleStateChange(a,c,e)};c.addEventListener("onStateChange",b);setInterval(function(){mejs.YouTubeApi.createEvent(c,e,"timeupdate")},250)},handleStateChange:function(b,a,c){switch(b){case -1:c.paused=!0;c.ended=!0;mejs.YouTubeApi.createEvent(a,c,"loadedmetadata");break;case 0:c.paused=!1;c.ended=!0;mejs.YouTubeApi.createEvent(a,c,"ended");break;case 1:c.paused=!1;c.ended=!1;mejs.YouTubeApi.createEvent(a,c,"play");mejs.YouTubeApi.createEvent(a,c,"playing");
break;case 2:c.paused=!0;c.ended=!1;mejs.YouTubeApi.createEvent(a,c,"pause");break;case 3:mejs.YouTubeApi.createEvent(a,c,"progress")}}};function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(b){mejs.YouTubeApi.flashReady(b)}window.mejs=mejs;window.MediaElement=mejs.MediaElement;
(function(b,a){var c={locale:{language:"",strings:{}},methods:{}};c.locale.getLanguage=function(){return c.locale.language||navigator.language};"undefined"!=typeof mejsL10n&&(c.locale.language=mejsL10n.language);c.locale.INIT_LANGUAGE=c.locale.getLanguage();c.methods.checkPlain=function(a){var c,b,g={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"},a=""+a;for(c in g)if(g.hasOwnProperty(c)){b=RegExp(c,"g");a=a.replace(b,g[c])}return a};c.methods.formatString=function(a,b){for(var f in b){switch(f.charAt(0)){case "@":b[f]=
c.methods.checkPlain(b[f]);break;case "!":break;default:b[f]='<em class="placeholder">'+c.methods.checkPlain(b[f])+"</em>"}a=a.replace(f,b[f])}return a};c.methods.t=function(a,b,f){c.locale.strings&&c.locale.strings[f.context]&&c.locale.strings[f.context][a]&&(a=c.locale.strings[f.context][a]);b&&(a=c.methods.formatString(a,b));return a};c.t=function(a,b,f){if(typeof a==="string"&&a.length>0){var g=c.locale.getLanguage(),f=f||{context:g};return c.methods.t(a,b,f)}throw{name:"InvalidArgumentException",
message:"First argument is either not a string or empty."};};a.i18n=c})(document,mejs);(function(b){"undefined"!=typeof mejsL10n&&(b[mejsL10n.language]=mejsL10n.strings)})(mejs.i18n.locale.strings);"undefined"!=typeof jQuery?mejs.$=jQuery:"undefined"!=typeof ender&&(mejs.$=ender);
(function(b){mejs.MepDefaults={poster:"",showPosterWhenEnded:false,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(a){return a.duration*0.05},defaultSeekForwardInterval:function(a){return a.duration*0.05},audioWidth:-1,audioHeight:-1,startVolume:0.8,loop:false,autoRewind:true,enableAutosize:true,alwaysShowHours:false,showTimecodeFrameCount:false,framesPerSecond:25,autosizeProgress:true,alwaysShowControls:false,
hideVideoControlsOnLoad:false,clickToPlayPause:true,iPadUseNativeControls:false,iPhoneUseNativeControls:false,AndroidUseNativeControls:false,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:true,enableKeyboard:true,pauseOtherPlayers:true,keyActions:[{keys:[32,179],action:function(a,c){c.paused||c.ended?c.play():c.pause()}},{keys:[38],action:function(a,c){var b=Math.min(c.volume+0.1,1);c.setVolume(b)}},{keys:[40],action:function(a,c){var b=Math.max(c.volume-
0.1,0);c.setVolume(b)}},{keys:[37,227],action:function(a,c){if(!isNaN(c.duration)&&c.duration>0){if(a.isVideo){a.showControls();a.startControlsTimer()}var b=Math.max(c.currentTime-a.options.defaultSeekBackwardInterval(c),0);c.setCurrentTime(b)}}},{keys:[39,228],action:function(a,c){if(!isNaN(c.duration)&&c.duration>0){if(a.isVideo){a.showControls();a.startControlsTimer()}var b=Math.min(c.currentTime+a.options.defaultSeekForwardInterval(c),c.duration);c.setCurrentTime(b)}}},{keys:[70],action:function(a){typeof a.enterFullScreen!=
"undefined"&&(a.isFullScreen?a.exitFullScreen():a.enterFullScreen())}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(a,c){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(a,c);this.$media=this.$node=b(a);this.node=this.media=this.$media[0];if(typeof this.node.player!="undefined")return this.node.player;this.node.player=this;typeof c=="undefined"&&(c=this.$node.data("mejsoptions"));this.options=b.extend({},mejs.MepDefaults,c);this.id="mep_"+mejs.mepIndex++;
mejs.players[this.id]=this;this.init();return this};mejs.MediaElementPlayer.prototype={hasFocus:false,controlsAreVisible:true,init:function(){var a=this,c=mejs.MediaFeatures,e=b.extend(true,{},a.options,{success:function(c,b){a.meReady(c,b)},error:function(c){a.handleError(c)}}),d=a.media.tagName.toLowerCase();a.isDynamic=d!=="audio"&&d!=="video";a.isVideo=a.isDynamic?a.options.isVideo:d!=="audio"&&a.options.isVideo;if(c.isiPad&&a.options.iPadUseNativeControls||c.isiPhone&&a.options.iPhoneUseNativeControls){a.$media.attr("controls",
"controls");if(c.isiPad&&a.media.getAttribute("autoplay")!==null){a.media.load();a.media.play()}}else if(!c.isAndroid||!a.options.AndroidUseNativeControls){a.$media.removeAttr("controls");a.container=b('<div id="'+a.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(a.$media[0].className).insertBefore(a.$media);
a.container.addClass((c.isAndroid?"mejs-android ":"")+(c.isiOS?"mejs-ios ":"")+(c.isiPad?"mejs-ipad ":"")+(c.isiPhone?"mejs-iphone ":"")+(a.isVideo?"mejs-video ":"mejs-audio "));if(c.isiOS){c=a.$media.clone();a.container.find(".mejs-mediaelement").append(c);a.$media.remove();a.$node=a.$media=c;a.node=a.media=c[0]}else a.container.find(".mejs-mediaelement").append(a.$media);a.controls=a.container.find(".mejs-controls");a.layers=a.container.find(".mejs-layers");c=a.isVideo?"video":"audio";d=c.substring(0,
1).toUpperCase()+c.substring(1);a.width=a.options[c+"Width"]>0||a.options[c+"Width"].toString().indexOf("%")>-1?a.options[c+"Width"]:a.media.style.width!==""&&a.media.style.width!==null?a.media.style.width:a.media.getAttribute("width")!==null?a.$media.attr("width"):a.options["default"+d+"Width"];a.height=a.options[c+"Height"]>0||a.options[c+"Height"].toString().indexOf("%")>-1?a.options[c+"Height"]:a.media.style.height!==""&&a.media.style.height!==null?a.media.style.height:a.$media[0].getAttribute("height")!==
null?a.$media.attr("height"):a.options["default"+d+"Height"];a.setPlayerSize(a.width,a.height);e.pluginWidth=a.width;e.pluginHeight=a.height}mejs.MediaElement(a.$media[0],e);typeof a.container!="undefined"&&a.controlsAreVisible&&a.container.trigger("controlsshown")},showControls:function(a){var c=this;if(!c.controlsAreVisible){if(typeof a=="undefined"||a){c.controls.css("visibility","visible").stop(true,true).fadeIn(200,function(){c.controlsAreVisible=true;c.container.trigger("controlsshown")});c.container.find(".mejs-control").css("visibility",
"visible").stop(true,true).fadeIn(200,function(){c.controlsAreVisible=true})}else{c.controls.css("visibility","visible").css("display","block");c.container.find(".mejs-control").css("visibility","visible").css("display","block");c.controlsAreVisible=true;c.container.trigger("controlsshown")}c.setControlsSize()}},hideControls:function(a){var c=this;if(c.controlsAreVisible&&!c.options.alwaysShowControls)if(typeof a=="undefined"||a){c.controls.stop(true,true).fadeOut(200,function(){b(this).css("visibility",
"hidden").css("display","block");c.controlsAreVisible=false;c.container.trigger("controlshidden")});c.container.find(".mejs-control").stop(true,true).fadeOut(200,function(){b(this).css("visibility","hidden").css("display","block")})}else{c.controls.css("visibility","hidden").css("display","block");c.container.find(".mejs-control").css("visibility","hidden").css("display","block");c.controlsAreVisible=false;c.container.trigger("controlshidden")}},controlsTimer:null,startControlsTimer:function(a){var c=
this,a=typeof a!="undefined"?a:1500;c.killControlsTimer("start");c.controlsTimer=setTimeout(function(){c.hideControls();c.killControlsTimer("hide")},a)},killControlsTimer:function(){if(this.controlsTimer!==null){clearTimeout(this.controlsTimer);delete this.controlsTimer;this.controlsTimer=null}},controlsEnabled:true,disableControls:function(){this.killControlsTimer();this.hideControls(false);this.controlsEnabled=false},enableControls:function(){this.showControls(false);this.controlsEnabled=true},
meReady:function(a,c){var b=this,d=mejs.MediaFeatures,f=c.getAttribute("autoplay"),f=!(typeof f=="undefined"||f===null||f==="false"),g;if(!b.created){b.created=true;b.media=a;b.domNode=c;if((!d.isAndroid||!b.options.AndroidUseNativeControls)&&(!d.isiPad||!b.options.iPadUseNativeControls)&&(!d.isiPhone||!b.options.iPhoneUseNativeControls)){b.buildposter(b,b.controls,b.layers,b.media);b.buildkeyboard(b,b.controls,b.layers,b.media);b.buildoverlays(b,b.controls,b.layers,b.media);b.findTracks();for(g in b.options.features){d=
b.options.features[g];if(b["build"+d])try{b["build"+d](b,b.controls,b.layers,b.media)}catch(h){}}b.container.trigger("controlsready");b.setPlayerSize(b.width,b.height);b.setControlsSize();if(b.isVideo){if(mejs.MediaFeatures.hasTouch)b.$media.bind("touchstart",function(){b.controlsAreVisible?b.hideControls(false):b.controlsEnabled&&b.showControls(false)});else{mejs.MediaElementPlayer.prototype.clickToPlayPauseCallback=function(){b.options.clickToPlayPause&&(b.media.paused?b.media.play():b.media.pause())};
b.media.addEventListener("click",b.clickToPlayPauseCallback,false);b.container.bind("mouseenter mouseover",function(){if(b.controlsEnabled&&!b.options.alwaysShowControls){b.killControlsTimer("enter");b.showControls();b.startControlsTimer(2500)}}).bind("mousemove",function(){if(b.controlsEnabled){b.controlsAreVisible||b.showControls();b.options.alwaysShowControls||b.startControlsTimer(2500)}}).bind("mouseleave",function(){b.controlsEnabled&&!b.media.paused&&!b.options.alwaysShowControls&&b.startControlsTimer(1E3)})}b.options.hideVideoControlsOnLoad&&
b.hideControls(false);f&&!b.options.alwaysShowControls&&b.hideControls();b.options.enableAutosize&&b.media.addEventListener("loadedmetadata",function(a){if(b.options.videoHeight<=0&&b.domNode.getAttribute("height")===null&&!isNaN(a.target.videoHeight)){b.setPlayerSize(a.target.videoWidth,a.target.videoHeight);b.setControlsSize();b.media.setVideoSize(a.target.videoWidth,a.target.videoHeight)}},false)}a.addEventListener("play",function(){for(var a in mejs.players){var c=mejs.players[a];c.id!=b.id&&
b.options.pauseOtherPlayers&&!c.paused&&!c.ended&&c.pause();c.hasFocus=false}b.hasFocus=true},false);b.media.addEventListener("ended",function(){if(b.options.autoRewind)try{b.media.setCurrentTime(0)}catch(a){}b.media.pause();b.setProgressRail&&b.setProgressRail();b.setCurrentRail&&b.setCurrentRail();b.options.loop?b.media.play():!b.options.alwaysShowControls&&b.controlsEnabled&&b.showControls()},false);b.media.addEventListener("loadedmetadata",function(){b.updateDuration&&b.updateDuration();b.updateCurrent&&
b.updateCurrent();if(!b.isFullScreen){b.setPlayerSize(b.width,b.height);b.setControlsSize()}},false);setTimeout(function(){b.setPlayerSize(b.width,b.height);b.setControlsSize()},50);b.globalBind("resize",function(){b.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen||b.setPlayerSize(b.width,b.height);b.setControlsSize()});b.media.pluginType=="youtube"&&b.container.find(".mejs-overlay-play").hide()}if(f&&a.pluginType=="native"){a.load();a.play()}if(b.options.success)if(typeof b.options.success==
"string")window[b.options.success](b.media,b.domNode,b);else b.options.success(b.media,b.domNode,b)}},handleError:function(a){this.controls.hide();this.options.error&&this.options.error(a)},setPlayerSize:function(a,c){if(typeof a!="undefined")this.width=a;if(typeof c!="undefined")this.height=c;if(this.height.toString().indexOf("%")>0||this.$node.css("max-width")==="100%"||parseInt(this.$node.css("max-width").replace(/px/,""),10)/this.$node.offsetParent().width()===1||this.$node[0].currentStyle&&this.$node[0].currentStyle.maxWidth===
"100%"){var e=this.isVideo?this.media.videoWidth&&this.media.videoWidth>0?this.media.videoWidth:this.options.defaultVideoWidth:this.options.defaultAudioWidth,d=this.isVideo?this.media.videoHeight&&this.media.videoHeight>0?this.media.videoHeight:this.options.defaultVideoHeight:this.options.defaultAudioHeight,f=this.container.parent().closest(":visible").width(),e=this.isVideo||!this.options.autosizeProgress?parseInt(f*d/e,10):d;if(this.container.parent()[0].tagName.toLowerCase()==="body"){f=b(window).width();
e=b(window).height()}if(e!=0&&f!=0){this.container.width(f).height(e);this.$media.add(this.container.find(".mejs-shim")).width("100%").height("100%");this.isVideo&&this.media.setVideoSize&&this.media.setVideoSize(f,e);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)}f=this.layers.find(".mejs-overlay-play");e=f.find(".mejs-overlay-button");f.height(this.container.height()-
this.controls.height());e.css("margin-top","-"+(e.height()/2-this.controls.height()/2).toString()+"px")},setControlsSize:function(){var a=0,c=0,e=this.controls.find(".mejs-time-rail"),d=this.controls.find(".mejs-time-total");this.controls.find(".mejs-time-current");this.controls.find(".mejs-time-loaded");var f=e.siblings();this.options&&!this.options.autosizeProgress&&(c=parseInt(e.css("width")));if(c===0||!c){f.each(function(){var c=b(this);c.css("position")!="absolute"&&c.is(":visible")&&(a=a+b(this).outerWidth(true))});
c=this.controls.width()-a-(e.outerWidth(true)-e.width())}e.width(c);d.width(c-(d.outerWidth(true)-d.width()));this.setProgressRail&&this.setProgressRail();this.setCurrentRail&&this.setCurrentRail()},buildposter:function(a,c,e,d){var f=b('<div class="mejs-poster mejs-layer"></div>').appendTo(e),c=a.$media.attr("poster");if(a.options.poster!=="")c=a.options.poster;c!==""&&c!=null?this.setPoster(c):f.hide();d.addEventListener("play",function(){f.hide()},false);a.options.showPosterWhenEnded&&a.options.autoRewind&&
d.addEventListener("ended",function(){f.show()},false)},setPoster:function(a){var c=this.container.find(".mejs-poster"),e=c.find("img");e.length==0&&(e=b('<img width="100%" height="100%" />').appendTo(c));e.attr("src",a);c.css({"background-image":"url("+a+")"})},buildoverlays:function(a,c,e,d){var f=this;if(a.isVideo){var g=b('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-loading"><span></span></div></div>').hide().appendTo(e),h=b('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-error"></div></div>').hide().appendTo(e),
k=b('<div class="mejs-overlay mejs-layer mejs-overlay-play"><div class="mejs-overlay-button"></div></div>').appendTo(e).click(function(){f.options.clickToPlayPause&&(d.paused?d.play():d.pause())});d.addEventListener("play",function(){k.hide();g.hide();c.find(".mejs-time-buffering").hide();h.hide()},false);d.addEventListener("playing",function(){k.hide();g.hide();c.find(".mejs-time-buffering").hide();h.hide()},false);d.addEventListener("seeking",function(){g.show();c.find(".mejs-time-buffering").show()},
false);d.addEventListener("seeked",function(){g.hide();c.find(".mejs-time-buffering").hide()},false);d.addEventListener("pause",function(){mejs.MediaFeatures.isiPhone||k.show()},false);d.addEventListener("waiting",function(){g.show();c.find(".mejs-time-buffering").show()},false);d.addEventListener("loadeddata",function(){g.show();c.find(".mejs-time-buffering").show()},false);d.addEventListener("canplay",function(){g.hide();c.find(".mejs-time-buffering").hide()},false);d.addEventListener("error",function(){g.hide();
c.find(".mejs-time-buffering").hide();h.show();h.find("mejs-overlay-error").html("Error loading this resource")},false)}},buildkeyboard:function(a,c,e,d){this.globalBind("keydown",function(b){if(a.hasFocus&&a.options.enableKeyboard)for(var c=0,e=a.options.keyActions.length;c<e;c++)for(var k=a.options.keyActions[c],j=0,l=k.keys.length;j<l;j++)if(b.keyCode==k.keys[j]){b.preventDefault();k.action(a,d,b.keyCode);return false}return true});this.globalBind("click",function(c){if(b(c.target).closest(".mejs-container").length==
0)a.hasFocus=false})},findTracks:function(){var a=this,c=a.$media.find("track");a.tracks=[];c.each(function(c,d){d=b(d);a.tracks.push({srclang:d.attr("srclang")?d.attr("srclang").toLowerCase():"",src:d.attr("src"),kind:d.attr("kind"),label:d.attr("label")||"",entries:[],isLoaded:false})})},changeSkin:function(a){this.container[0].className="mejs-container "+a;this.setPlayerSize(this.width,this.height);this.setControlsSize()},play:function(){this.media.play()},pause:function(){try{this.media.pause()}catch(a){}},
load:function(){this.media.load()},setMuted:function(a){this.media.setMuted(a)},setCurrentTime:function(a){this.media.setCurrentTime(a)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(a){this.media.setVolume(a)},getVolume:function(){return this.media.volume},setSrc:function(a){this.media.setSrc(a)},remove:function(){var a,b;for(a in this.options.features){b=this.options.features[a];if(this["clean"+b])try{this["clean"+b](this)}catch(e){}}if(this.isDynamic)this.$node.insertBefore(this.container);
else{this.$media.prop("controls",true);this.$node.clone().show().insertBefore(this.container);this.$node.remove()}this.media.pluginType!=="native"&&this.media.remove();delete mejs.players[this.id];this.container.remove();this.globalUnbind();delete this.node.player}};(function(){function a(a,d){var f={d:[],w:[]};b.each((a||"").split(" "),function(a,b){var e=b+"."+d;if(e.indexOf(".")===0){f.d.push(e);f.w.push(e)}else f[c.test(b)?"w":"d"].push(e)});f.d=f.d.join(" ");f.w=f.w.join(" ");return f}var c=
/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/;mejs.MediaElementPlayer.prototype.globalBind=function(c,d,f){c=a(c,this.id);c.d&&b(document).bind(c.d,d,f);c.w&&b(window).bind(c.w,d,f)};mejs.MediaElementPlayer.prototype.globalUnbind=function(c,d){c=a(c,this.id);c.d&&b(document).unbind(c.d,d);c.w&&b(window).unbind(c.w,d)}})();if(typeof jQuery!="undefined")jQuery.fn.mediaelementplayer=function(a){a===false?this.each(function(){var a=jQuery(this).data("mediaelementplayer");
a&&a.remove();jQuery(this).removeData("mediaelementplayer")}):this.each(function(){jQuery(this).data("mediaelementplayer",new mejs.MediaElementPlayer(this,a))});return this};b(document).ready(function(){b(".mejs-player").mediaelementplayer()});window.MediaElementPlayer=mejs.MediaElementPlayer})(mejs.$);
(function(b){b.extend(mejs.MepDefaults,{playpauseText:mejs.i18n.t("Play/Pause")});b.extend(MediaElementPlayer.prototype,{buildplaypause:function(a,c,e,d){var f=b('<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(c).click(function(a){a.preventDefault();d.paused?d.play():d.pause();return false});d.addEventListener("play",function(){f.removeClass("mejs-play").addClass("mejs-pause")},
false);d.addEventListener("playing",function(){f.removeClass("mejs-play").addClass("mejs-pause")},false);d.addEventListener("pause",function(){f.removeClass("mejs-pause").addClass("mejs-play")},false);d.addEventListener("paused",function(){f.removeClass("mejs-pause").addClass("mejs-play")},false)}})})(mejs.$);
(function(b){b.extend(mejs.MepDefaults,{stopText:"Stop"});b.extend(MediaElementPlayer.prototype,{buildstop:function(a,c,e,d){b('<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(c).click(function(){d.paused||d.pause();if(d.currentTime>0){d.setCurrentTime(0);d.pause();c.find(".mejs-time-current").width("0px");c.find(".mejs-time-handle").css("left",
"0px");c.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0));c.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0));e.find(".mejs-poster").show()}})}})})(mejs.$);
(function(b){b.extend(MediaElementPlayer.prototype,{buildprogress:function(a,c,e,d){b('<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(c);c.find(".mejs-time-buffering").hide();var f=
this,g=c.find(".mejs-time-total"),e=c.find(".mejs-time-loaded"),h=c.find(".mejs-time-current"),k=c.find(".mejs-time-handle"),j=c.find(".mejs-time-float"),l=c.find(".mejs-time-float-current"),m=function(a){var a=a.pageX,b=g.offset(),c=g.outerWidth(true),e=0,f=e=0;if(d.duration){a<b.left?a=b.left:a>c+b.left&&(a=c+b.left);f=a-b.left;e=f/c;e=e<=0.02?0:e*d.duration;n&&e!==d.currentTime&&d.setCurrentTime(e);if(!mejs.MediaFeatures.hasTouch){j.css("left",f);l.html(mejs.Utility.secondsToTimeCode(e));j.show()}}},
n=false;g.bind("mousedown",function(a){if(a.which===1){n=true;m(a);f.globalBind("mousemove.dur",function(a){m(a)});f.globalBind("mouseup.dur",function(){n=false;j.hide();f.globalUnbind(".dur")});return false}}).bind("mouseenter",function(){f.globalBind("mousemove.dur",function(a){m(a)});mejs.MediaFeatures.hasTouch||j.show()}).bind("mouseleave",function(){if(!n){f.globalUnbind(".dur");j.hide()}});d.addEventListener("progress",function(b){a.setProgressRail(b);a.setCurrentRail(b)},false);d.addEventListener("timeupdate",
function(b){a.setProgressRail(b);a.setCurrentRail(b)},false);f.loaded=e;f.total=g;f.current=h;f.handle=k},setProgressRail:function(a){var b=a!=void 0?a.target:this.media,e=null;b&&b.buffered&&b.buffered.length>0&&b.buffered.end&&b.duration?e=b.buffered.end(0)/b.duration:b&&b.bytesTotal!=void 0&&b.bytesTotal>0&&b.bufferedBytes!=void 0?e=b.bufferedBytes/b.bytesTotal:a&&a.lengthComputable&&a.total!=0&&(e=a.loaded/a.total);if(e!==null){e=Math.min(1,Math.max(0,e));this.loaded&&this.total&&this.loaded.width(this.total.width()*
e)}},setCurrentRail:function(){if(this.media.currentTime!=void 0&&this.media.duration&&this.total&&this.handle){var a=Math.round(this.total.width()*this.media.currentTime/this.media.duration),b=a-Math.round(this.handle.outerWidth(true)/2);this.current.width(a);this.handle.css("left",b)}}})})(mejs.$);
(function(b){b.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:"<span> | </span>"});b.extend(MediaElementPlayer.prototype,{buildcurrent:function(a,c,e,d){b('<div class="mejs-time"><span class="mejs-currenttime">'+(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00")+"</span></div>").appendTo(c);this.currenttime=this.controls.find(".mejs-currenttime");d.addEventListener("timeupdate",function(){a.updateCurrent()},false)},buildduration:function(a,c,
e,d){if(c.children().last().find(".mejs-currenttime").length>0)b(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):(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"</span>").appendTo(c.find(".mejs-time"));else{c.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container");
b('<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):(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"</span></div>").appendTo(c)}this.durationD=this.controls.find(".mejs-duration");d.addEventListener("timeupdate",function(){a.updateDuration()},
false)},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);if(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(b){b.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("Mute Toggle"),hideVolumeOnTouchDevices:true,audioVolume:"horizontal",videoVolume:"vertical"});b.extend(MediaElementPlayer.prototype,{buildvolume:function(a,c,e,d){if(!mejs.MediaFeatures.hasTouch||!this.options.hideVolumeOnTouchDevices){var f=this,g=f.isVideo?f.options.videoVolume:f.options.audioVolume,h=g=="horizontal"?b('<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(c):b('<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(c),
k=f.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),j=f.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),l=f.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),m=f.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),n=function(a,b){if(!k.is(":visible")&&typeof b=="undefined"){k.show();n(a,true);k.hide()}else{a=Math.max(0,a);a=Math.min(a,1);a==0?h.removeClass("mejs-mute").addClass("mejs-unmute"):h.removeClass("mejs-unmute").addClass("mejs-mute");
if(g=="vertical"){var c=j.height(),d=j.position(),e=c-c*a;m.css("top",Math.round(d.top+e-m.height()/2));l.height(c-e);l.css("top",d.top+e)}else{c=j.width();d=j.position();c=c*a;m.css("left",Math.round(d.left+c-m.width()/2));l.width(Math.round(c))}}},q=function(a){var b=null,c=j.offset();if(g=="vertical"){b=j.height();parseInt(j.css("top").replace(/px/,""),10);b=(b-(a.pageY-c.top))/b;if(c.top==0||c.left==0)return}else{b=j.width();b=(a.pageX-c.left)/b}b=Math.max(0,b);b=Math.min(b,1);n(b);b==0?d.setMuted(true):
d.setMuted(false);d.setVolume(b)},o=false,p=false;h.hover(function(){k.show();p=true},function(){p=false;!o&&g=="vertical"&&k.hide()});k.bind("mouseover",function(){p=true}).bind("mousedown",function(a){q(a);f.globalBind("mousemove.vol",function(a){q(a)});f.globalBind("mouseup.vol",function(){o=false;f.globalUnbind(".vol");!p&&g=="vertical"&&k.hide()});o=true;return false});h.find("button").click(function(){d.setMuted(!d.muted)});d.addEventListener("volumechange",function(){if(!o)if(d.muted){n(0);
h.removeClass("mejs-mute").addClass("mejs-unmute")}else{n(d.volume);h.removeClass("mejs-unmute").addClass("mejs-mute")}},false);if(f.container.is(":visible")){n(a.options.startVolume);a.options.startVolume===0&&d.setMuted(true);d.pluginType==="native"&&d.setVolume(a.options.startVolume)}}}})})(mejs.$);
(function(b){b.extend(mejs.MepDefaults,{usePluginFullScreen:true,newWindowCallback:function(){return""},fullscreenText:mejs.i18n.t("Fullscreen")});b.extend(MediaElementPlayer.prototype,{isFullScreen:false,isNativeFullScreen:false,isInIframe:false,buildfullscreen:function(a,c,e,d){if(a.isVideo){a.isInIframe=window.location!=window.parent.location;if(mejs.MediaFeatures.hasTrueNativeFullScreen){e=function(){if(a.isFullScreen)if(mejs.MediaFeatures.isFullScreen()){a.isNativeFullScreen=true;a.setControlsSize()}else{a.isNativeFullScreen=
false;a.exitFullScreen()}};mejs.MediaFeatures.hasMozNativeFullScreen?a.globalBind(mejs.MediaFeatures.fullScreenEventName,e):a.container.bind(mejs.MediaFeatures.fullScreenEventName,e)}var f=this,g=b('<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(c);if(f.media.pluginType==="native"||!f.options.usePluginFullScreen&&!mejs.MediaFeatures.isFirefox)g.click(function(){mejs.MediaFeatures.hasTrueNativeFullScreen&&
mejs.MediaFeatures.isFullScreen()||a.isFullScreen?a.exitFullScreen():a.enterFullScreen()});else{var h=null;if(function(){var a=document.createElement("x"),b=document.documentElement,c=window.getComputedStyle;if(!("pointerEvents"in a.style))return false;a.style.pointerEvents="auto";a.style.pointerEvents="x";b.appendChild(a);c=c&&c(a,"").pointerEvents==="auto";b.removeChild(a);return!!c}()&&!mejs.MediaFeatures.isOpera){var k=false,j=function(){if(k){for(var a in l)l[a].hide();g.css("pointer-events",
"");f.controls.css("pointer-events","");f.media.removeEventListener("click",f.clickToPlayPauseCallback);k=false}},l={},c=["top","left","right","bottom"],m,n=function(){var a=g.offset().left-f.container.offset().left,b=g.offset().top-f.container.offset().top,c=g.outerWidth(true),d=g.outerHeight(true),e=f.container.width(),h=f.container.height();for(m in l)l[m].css({position:"absolute",top:0,left:0});l.top.width(e).height(b);l.left.width(a).height(d).css({top:b});l.right.width(e-a-c).height(d).css({top:b,
left:a+c});l.bottom.width(e).height(h-d-b).css({top:b+d})};f.globalBind("resize",function(){n()});m=0;for(e=c.length;m<e;m++)l[c[m]]=b('<div class="mejs-fullscreen-hover" />').appendTo(f.container).mouseover(j).hide();g.on("mouseover",function(){if(!f.isFullScreen){var b=g.offset(),c=a.container.offset();d.positionFullscreenButton(b.left-c.left,b.top-c.top,false);g.css("pointer-events","none");f.controls.css("pointer-events","none");f.media.addEventListener("click",f.clickToPlayPauseCallback);for(m in l)l[m].show();
n();k=true}});d.addEventListener("fullscreenchange",function(){f.isFullScreen=!f.isFullScreen;f.isFullScreen?f.media.removeEventListener("click",f.clickToPlayPauseCallback):f.media.addEventListener("click",f.clickToPlayPauseCallback);j()});f.globalBind("mousemove",function(a){if(k){var b=g.offset();if(a.pageY<b.top||a.pageY>b.top+g.outerHeight(true)||a.pageX<b.left||a.pageX>b.left+g.outerWidth(true)){g.css("pointer-events","");f.controls.css("pointer-events","");k=false}}})}else g.on("mouseover",
function(){if(h!==null){clearTimeout(h);delete h}var b=g.offset(),c=a.container.offset();d.positionFullscreenButton(b.left-c.left,b.top-c.top,true)}).on("mouseout",function(){if(h!==null){clearTimeout(h);delete h}h=setTimeout(function(){d.hideFullscreenButton()},1500)})}a.fullscreenBtn=g;f.globalBind("keydown",function(b){(mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||f.isFullScreen)&&b.keyCode==27&&a.exitFullScreen()})}},cleanfullscreen:function(a){a.exitFullScreen()},
containerSizeTimeout:null,enterFullScreen:function(){var a=this;if(!(a.media.pluginType!=="native"&&(mejs.MediaFeatures.isFirefox||a.options.usePluginFullScreen))){b(document.documentElement).addClass("mejs-fullscreen");normalHeight=a.container.height();normalWidth=a.container.width();if(a.media.pluginType==="native")if(mejs.MediaFeatures.hasTrueNativeFullScreen){mejs.MediaFeatures.requestFullScreen(a.container[0]);a.isInIframe&&setTimeout(function d(){a.isNativeFullScreen&&(b(window).width()!==screen.width?
a.exitFullScreen():setTimeout(d,500))},500)}else if(mejs.MediaFeatures.hasSemiNativeFullScreen){a.media.webkitEnterFullscreen();return}if(a.isInIframe){var c=a.options.newWindowCallback(this);if(c!=="")if(mejs.MediaFeatures.hasTrueNativeFullScreen)setTimeout(function(){if(!a.isNativeFullScreen){a.pause();window.open(c,a.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no")}},250);else{a.pause();window.open(c,a.id,"top=0,left=0,width="+
screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no");return}}a.container.addClass("mejs-container-fullscreen").width("100%").height("100%");a.containerSizeTimeout=setTimeout(function(){a.container.css({width:"100%",height:"100%"});a.setControlsSize()},500);if(a.media.pluginType==="native")a.$media.width("100%").height("100%");else{a.container.find(".mejs-shim").width("100%").height("100%");a.media.setVideoSize(b(window).width(),b(window).height())}a.layers.children("div").width("100%").height("100%");
a.fullscreenBtn&&a.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen");a.setControlsSize();a.isFullScreen=true}},exitFullScreen:function(){clearTimeout(this.containerSizeTimeout);if(this.media.pluginType!=="native"&&mejs.MediaFeatures.isFirefox)this.media.setFullscreen(false);else{mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||this.isFullScreen)&&mejs.MediaFeatures.cancelFullScreen();b(document.documentElement).removeClass("mejs-fullscreen");
this.container.removeClass("mejs-container-fullscreen").width(normalWidth).height(normalHeight);if(this.media.pluginType==="native")this.$media.width(normalWidth).height(normalHeight);else{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=
false}}})})(mejs.$);
(function(b){b.extend(mejs.MepDefaults,{startLanguage:"",tracksText:mejs.i18n.t("Captions/Subtitles"),hideCaptionsButtonWhenEmpty:true,toggleCaptionsButtonWhenOnlyOne:false,slidesSelector:""});b.extend(MediaElementPlayer.prototype,{hasChapters:false,buildtracks:function(a,c,e,d){if(a.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";a.chapters=b('<div class="mejs-chapters mejs-layer"></div>').prependTo(e).hide();a.captions=
b('<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(e).hide();a.captionsText=a.captions.find(".mejs-captions-text");a.captionsButton=b('<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="'+
a.id+'_captions" id="'+a.id+'_captions_none" value="none" checked="checked" /><label for="'+a.id+'_captions_none">'+mejs.i18n.t("None")+"</label></li></ul></div></div>").appendTo(c);for(f=c=0;f<a.tracks.length;f++)a.tracks[f].kind=="subtitles"&&c++;if(this.options.toggleCaptionsButtonWhenOnlyOne&&c==1)a.captionsButton.on("click",function(){a.setTrack(a.selectedTrack==null?a.tracks[0].srclang:"none")});else a.captionsButton.hover(function(){b(this).find(".mejs-captions-selector").css("visibility",
"visible")},function(){b(this).find(".mejs-captions-selector").css("visibility","hidden")}).on("click","input[type=radio]",function(){lang=this.value;a.setTrack(lang)});a.options.alwaysShowControls?a.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover"):a.container.bind("controlsshown",function(){a.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}).bind("controlshidden",function(){d.paused||a.container.find(".mejs-captions-position").removeClass("mejs-captions-position-hover")});
a.trackToLoad=-1;a.selectedTrack=null;a.isLoadingTrack=false;for(f=0;f<a.tracks.length;f++)a.tracks[f].kind=="subtitles"&&a.addTrackButton(a.tracks[f].srclang,a.tracks[f].label);a.loadNextTrack();d.addEventListener("timeupdate",function(){a.displayCaptions()},false);if(a.options.slidesSelector!=""){a.slidesContainer=b(a.options.slidesSelector);d.addEventListener("timeupdate",function(){a.displaySlides()},false)}d.addEventListener("loadedmetadata",function(){a.displayChapters()},false);a.container.hover(function(){if(a.hasChapters){a.chapters.css("visibility",
"visible");a.chapters.fadeIn(200).height(a.chapters.find(".mejs-chapter").outerHeight())}},function(){a.hasChapters&&!d.paused&&a.chapters.fadeOut(200,function(){b(this).css("visibility","hidden");b(this).css("display","block")})});a.node.getAttribute("autoplay")!==null&&a.chapters.css("visibility","hidden")}},setTrack:function(a){var b;if(a=="none"){this.selectedTrack=null;this.captionsButton.removeClass("mejs-captions-enabled")}else for(b=0;b<this.tracks.length;b++)if(this.tracks[b].srclang==a){this.selectedTrack==
null&&this.captionsButton.addClass("mejs-captions-enabled");this.selectedTrack=this.tracks[b];this.captions.attr("lang",this.selectedTrack.srclang);this.displayCaptions();break}},loadNextTrack:function(){this.trackToLoad++;if(this.trackToLoad<this.tracks.length){this.isLoadingTrack=true;this.loadTrack(this.trackToLoad)}else{this.isLoadingTrack=false;this.checkForTracks()}},loadTrack:function(a){var c=this,e=c.tracks[a];b.ajax({url:e.src,dataType:"text",success:function(a){e.entries=typeof a=="string"&&
/<tt\s+xml/ig.exec(a)?mejs.TrackFormatParser.dfxp.parse(a):mejs.TrackFormatParser.webvvt.parse(a);e.isLoaded=true;c.enableTrackButton(e.srclang,e.label);c.loadNextTrack();e.kind=="chapters"&&c.media.addEventListener("play",function(){c.media.duration>0&&c.displayChapters(e)},false);e.kind=="slides"&&c.setupSlides(e)},error:function(){c.loadNextTrack()}})},enableTrackButton:function(a,c){c===""&&(c=mejs.language.codes[a]||a);this.captionsButton.find("input[value="+a+"]").prop("disabled",false).siblings("label").html(c);
this.options.startLanguage==a&&b("#"+this.id+"_captions_"+a).click();this.adjustLanguageBox()},addTrackButton:function(a,c){c===""&&(c=mejs.language.codes[a]||a);this.captionsButton.find("ul").append(b('<li><input type="radio" name="'+this.id+'_captions" id="'+this.id+"_captions_"+a+'" value="'+a+'" disabled="disabled" /><label for="'+this.id+"_captions_"+a+'">'+c+" (loading)</label></li>"));this.adjustLanguageBox();this.container.find(".mejs-captions-translations option[value="+a+"]").remove()},
adjustLanguageBox:function(){this.captionsButton.find(".mejs-captions-selector").height(this.captionsButton.find(".mejs-captions-selector ul").outerHeight(true)+this.captionsButton.find(".mejs-captions-translations").outerHeight(true))},checkForTracks:function(){var a=false;if(this.options.hideCaptionsButtonWhenEmpty){for(i=0;i<this.tracks.length;i++)if(this.tracks[i].kind=="subtitles"){a=true;break}if(!a){this.captionsButton.hide();this.setControlsSize()}}},displayCaptions:function(){if(typeof this.tracks!=
"undefined"){var a,b=this.selectedTrack;if(b!=null&&b.isLoaded)for(a=0;a<b.entries.times.length;a++)if(this.media.currentTime>=b.entries.times[a].start&&this.media.currentTime<=b.entries.times[a].stop){this.captionsText.html(b.entries.text[a]);this.captions.show().height(0);return}this.captions.hide()}},setupSlides:function(a){this.slides=a;this.slides.entries.imgs=[this.slides.entries.text.length];this.showSlide(0)},showSlide:function(a){if(!(typeof this.tracks=="undefined"||typeof this.slidesContainer==
"undefined")){var c=this,e=c.slides.entries.text[a],d=c.slides.entries.imgs[a];typeof d=="undefined"||typeof d.fadeIn=="undefined"?c.slides.entries.imgs[a]=d=b('<img src="'+e+'">').on("load",function(){d.appendTo(c.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()}):!d.is(":visible")&&!d.is(":animated")&&d.fadeIn().siblings(":visible").fadeOut()}},displaySlides:function(){if(typeof this.slides!="undefined"){var a=this.slides,b;for(b=0;b<a.entries.times.length;b++)if(this.media.currentTime>=
a.entries.times[b].start&&this.media.currentTime<=a.entries.times[b].stop){this.showSlide(b);break}}},displayChapters:function(){var a;for(a=0;a<this.tracks.length;a++)if(this.tracks[a].kind=="chapters"&&this.tracks[a].isLoaded){this.drawChapters(this.tracks[a]);this.hasChapters=true;break}},drawChapters:function(a){var c=this,e,d,f=d=0;c.chapters.empty();for(e=0;e<a.entries.times.length;e++){d=a.entries.times[e].stop-a.entries.times[e].start;d=Math.floor(d/c.media.duration*100);if(d+f>100||e==a.entries.times.length-
1&&d+f<100)d=100-f;c.chapters.append(b('<div class="mejs-chapter" rel="'+a.entries.times[e].start+'" style="left: '+f.toString()+"%;width: "+d.toString()+'%;"><div class="mejs-chapter-block'+(e==a.entries.times.length-1?" mejs-chapter-block-last":"")+'"><span class="ch-title">'+a.entries.text[e]+'</span><span class="ch-time">'+mejs.Utility.secondsToTimeCode(a.entries.times[e].start)+"&ndash;"+mejs.Utility.secondsToTimeCode(a.entries.times[e].stop)+"</span></div></div>"));f=f+d}c.chapters.find("div.mejs-chapter").click(function(){c.media.setCurrentTime(parseFloat(b(this).attr("rel")));
c.media.paused&&c.media.play()});c.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",tl:"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={webvvt:{pattern_identifier:/^([a-zA-z]+-)?[0-9]+$/,pattern_timecode:/^([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,
parse:function(a){for(var c=0,a=mejs.TrackFormatParser.split2(a,/\r?\n/),e={text:[],times:[]},d,f;c<a.length;c++)if(this.pattern_identifier.exec(a[c])){c++;if((d=this.pattern_timecode.exec(a[c]))&&c<a.length){c++;f=a[c];for(c++;a[c]!==""&&c<a.length;){f=f+"\n"+a[c];c++}f=b.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({start:mejs.Utility.convertSMPTEtoSeconds(d[1])==0?0.2:mejs.Utility.convertSMPTEtoSeconds(d[1]),
stop:mejs.Utility.convertSMPTEtoSeconds(d[3]),settings:d[5]})}}return e}},dfxp:{parse:function(a){var a=b(a).filter("tt"),c=0,c=a.children("div").eq(0),e=c.find("p"),c=a.find("#"+c.attr("style")),d,f,a={text:[],times:[]};if(c.length){f=c.removeAttr("id").get(0).attributes;if(f.length){d={};for(c=0;c<f.length;c++)d[f[c].name.split(":")[1]]=f[c].value}}for(c=0;c<e.length;c++){var g;f={start:null,stop:null,style:null};if(e.eq(c).attr("begin"))f.start=mejs.Utility.convertSMPTEtoSeconds(e.eq(c).attr("begin"));
if(!f.start&&e.eq(c-1).attr("end"))f.start=mejs.Utility.convertSMPTEtoSeconds(e.eq(c-1).attr("end"));if(e.eq(c).attr("end"))f.stop=mejs.Utility.convertSMPTEtoSeconds(e.eq(c).attr("end"));if(!f.stop&&e.eq(c+1).attr("begin"))f.stop=mejs.Utility.convertSMPTEtoSeconds(e.eq(c+1).attr("begin"));if(d){g="";for(var h in d)g=g+(h+":"+d[h]+";")}if(g)f.style=g;if(f.start==0)f.start=0.2;a.times.push(f);f=b.trim(e.eq(c).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,
"<a href='$1' target='_blank'>$1</a>");a.text.push(f);if(a.times.start==0)a.times.start=2}return a}},split2:function(a,b){return a.split(b)}};if("x\n\ny".split(/\n/gi).length!=3)mejs.TrackFormatParser.split2=function(a,b){var e=[],d="",f;for(f=0;f<a.length;f++){d=d+a.substring(f,f+1);if(b.test(d)){e.push(d.replace(b,""));d=""}}e.push(d);return e}})(mejs.$);
(function(b){b.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(a){return typeof a.enterFullScreen=="undefined"?null:a.isFullScreen?mejs.i18n.t("Turn off Fullscreen"):mejs.i18n.t("Go Fullscreen")},click:function(a){a.isFullScreen?a.exitFullScreen():a.enterFullScreen()}},{render:function(a){return a.media.muted?mejs.i18n.t("Unmute"):mejs.i18n.t("Mute")},click:function(a){a.media.muted?a.setMuted(false):a.setMuted(true)}},{isSeparator:true},{render:function(){return mejs.i18n.t("Download Video")},
click:function(a){window.location.href=a.media.currentSrc}}]});b.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(a){a.contextMenu=b('<div class="mejs-contextmenu"></div>').appendTo(b("body")).hide();a.container.bind("contextmenu",function(b){if(a.isContextMenuEnabled){b.preventDefault();a.renderContextMenu(b.clientX-1,b.clientY-1);return false}});a.container.bind("click",function(){a.contextMenu.hide()});a.contextMenu.bind("mouseleave",function(){a.startContextMenuTimer()})},cleancontextmenu:function(a){a.contextMenu.remove()},
isContextMenuEnabled:true,enableContextMenu:function(){this.isContextMenuEnabled=true},disableContextMenu:function(){this.isContextMenuEnabled=false},contextMenuTimeout:null,startContextMenuTimer:function(){var a=this;a.killContextMenuTimer();a.contextMenuTimer=setTimeout(function(){a.hideContextMenu();a.killContextMenuTimer()},750)},killContextMenuTimer:function(){var a=this.contextMenuTimer;if(a!=null){clearTimeout(a);delete a}},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(a,
c){for(var e=this,d="",f=e.options.contextMenuItems,g=0,h=f.length;g<h;g++)if(f[g].isSeparator)d=d+'<div class="mejs-contextmenu-separator"></div>';else{var k=f[g].render(e);k!=null&&(d=d+('<div class="mejs-contextmenu-item" data-itemindex="'+g+'" id="element-'+Math.random()*1E6+'">'+k+"</div>"))}e.contextMenu.empty().append(b(d)).css({top:c,left:a}).show();e.contextMenu.find(".mejs-contextmenu-item").each(function(){var a=b(this),c=parseInt(a.data("itemindex"),10),d=e.options.contextMenuItems[c];
typeof d.show!="undefined"&&d.show(a,e);a.click(function(){typeof d.click!="undefined"&&d.click(e);e.contextMenu.hide()})});setTimeout(function(){e.killControlsTimer("rev3")},100)}})})(mejs.$);
(function(b){b.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t("Close")});b.extend(MediaElementPlayer.prototype,{buildpostroll:function(a,c,e){var d=this.container.find('link[rel="postroll"]').attr("href");if(typeof d!=="undefined"){a.postroll=b('<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(e).hide();this.media.addEventListener("ended",
function(){b.ajax({dataType:"html",url:d,success:function(a){e.find(".mejs-postroll-layer-content").html(a)}});a.postroll.show()},false)}}})})(mejs.$);
