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