function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(n){mejs.YouTubeApi.flashReady(n)}(function(){for(var t=["details","summary"],n=0;n<t.length;n++)document.createElement(t[n])})();var mejs=mejs||{};mejs.version="2.16.4";mejs.meIndex=0;mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/youtube","video/x-youtube","application/x-mpegURL"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]};mejs.Utility={encodeUrl:function(n){return encodeURIComponent(n)},escapeHTML:function(n){return n.toString().split("&").join("&amp;").split("<").join("&lt;").split('"').join("&quot;")},absolutizeUrl:function(n){var t=document.createElement("div");return t.innerHTML='<a href="'+this.escapeHTML(n)+'">x<\/a>',t.firstChild.href},getScriptPath:function(n){for(var i,r,s,t,u,f,e=0,o="",h="",c=document.getElementsByTagName("script"),l=c.length,a=n.length;l>e;e++){for(t=c[e].src,r=t.lastIndexOf("/"),r>-1?(f=t.substring(r+1),u=t.substring(0,r+1)):(f=t,u=""),i=0;a>i;i++)if(h=n[i],s=f.indexOf(h),s>-1){o=u;break}if(""!==o)break}return o},secondsToTimeCode:function(n,t,i,r){"undefined"==typeof i?i=!1:"undefined"==typeof r&&(r=25);var u=Math.floor(n/3600)%24,f=Math.floor(n/60)%60,e=Math.floor(n%60),o=Math.floor((n%1*r).toFixed(3));return(t||u>0?(10>u?"0"+u:u)+":":"")+(10>f?"0"+f:f)+":"+(10>e?"0"+e:e)+(i?":"+(10>o?"0"+o:o):"")},timeCodeToSeconds:function(n,t,i,r){"undefined"==typeof i?i=!1:"undefined"==typeof r&&(r=25);var u=n.split(":"),e=parseInt(u[0],10),o=parseInt(u[1],10),s=parseInt(u[2],10),f=0,h=0;return i&&(f=parseInt(u[3])/r),h=3600*e+60*o+s+f},convertSMPTEtoSeconds:function(n){var t;if("string"!=typeof n)return!1;n=n.replace(",",".");var r=0,u=-1!=n.indexOf(".")?n.split(".")[1].length:0,i=1;for(n=n.split(":").reverse(),t=0;t<n.length;t++)i=1,t>0&&(i=Math.pow(60,t)),r+=Number(n[t])*i;return Number(r.toFixed(u))},removeSwf:function(n){var t=document.getElementById(n);t&&/object|embed/i.test(t.nodeName)&&(mejs.MediaFeatures.isIE?(t.style.display="none",function(){4==t.readyState?mejs.Utility.removeObjectInIE(n):setTimeout(arguments.callee,10)}()):t.parentNode.removeChild(t))},removeObjectInIE:function(n){var t=document.getElementById(n),i;if(t){for(i in t)"function"==typeof t[i]&&(t[i]=null);t.parentNode.removeChild(t)}}};mejs.PluginDetector={hasPluginVersion:function(n,t){var i=this.plugins[n];return t[1]=t[1]||0,t[2]=t[2]||0,i[0]>t[0]||i[0]==t[0]&&i[1]>t[1]||i[0]==t[0]&&i[1]==t[1]&&i[2]>=t[2]?!0:!1},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(n,t,i,r,u){this.plugins[n]=this.detectPlugin(t,i,r,u)},detectPlugin:function(n,t,i,r){var e,f,o,u=[0,0,0];if("undefined"!=typeof this.nav.plugins&&"object"==typeof this.nav.plugins[n]){if(e=this.nav.plugins[n].description,e&&("undefined"==typeof this.nav.mimeTypes||!this.nav.mimeTypes[t]||this.nav.mimeTypes[t].enabledPlugin))for(u=e.replace(n,"").replace(/^\s+/,"").replace(/\sr/gi,".").split("."),f=0;f<u.length;f++)u[f]=parseInt(u[f].match(/\d+/),10)}else if("undefined"!=typeof ActiveXObject)try{o=new ActiveXObject(i);o&&(u=r(o))}catch(s){}return u}};mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(n){var i=[],t=n.GetVariable("$version");return t&&(t=t.split(" ")[1].split(","),i=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)]),i});mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(n){var t=[0,0,0,0],i=function(n,t,i,r){for(;n.isVersionSupported(t[0]+"."+t[1]+"."+t[2]+"."+t[3]);)t[i]+=r;t[i]-=r};return i(n,t,0,1),i(n,t,1,1),i(n,t,2,1e4),i(n,t,2,1e3),i(n,t,2,100),i(n,t,2,10),i(n,t,2,1),i(n,t,3,1),t});mejs.MediaFeatures={init:function(){var r,i,n=this,u=document,f=mejs.PluginDetector.nav,t=mejs.PluginDetector.ua.toLowerCase(),e=["source","track","audio","video"];for(n.isiPad=null!==t.match(/ipad/i),n.isiPhone=null!==t.match(/iphone/i),n.isiOS=n.isiPhone||n.isiPad,n.isAndroid=null!==t.match(/android/i),n.isBustedAndroid=null!==t.match(/android 2\.[12]/),n.isBustedNativeHTTPS="https:"===location.protocol&&(null!==t.match(/android [12]\./)||null!==t.match(/macintosh.* version.* safari/)),n.isIE=-1!=f.appName.toLowerCase().indexOf("microsoft")||null!==f.appName.toLowerCase().match(/trident/gi),n.isChrome=null!==t.match(/chrome/gi),n.isChromium=null!==t.match(/chromium/gi),n.isFirefox=null!==t.match(/firefox/gi),n.isWebkit=null!==t.match(/webkit/gi),n.isGecko=null!==t.match(/gecko/gi)&&!n.isWebkit&&!n.isIE,n.isOpera=null!==t.match(/opera/gi),n.hasTouch=("ontouchstart"in window),n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r=0;r<e.length;r++)i=document.createElement(e[r]);n.supportsMediaTag="undefined"!=typeof i.canPlayType||n.isBustedAndroid;try{i.canPlayType("video/mp4")}catch(o){n.supportsMediaTag=!1}n.hasSemiNativeFullScreen="undefined"!=typeof i.webkitEnterFullscreen;n.hasNativeFullscreen="undefined"!=typeof i.requestFullscreen;n.hasWebkitNativeFullScreen="undefined"!=typeof i.webkitRequestFullScreen;n.hasMozNativeFullScreen="undefined"!=typeof i.mozRequestFullScreen;n.hasMsNativeFullScreen="undefined"!=typeof i.msRequestFullscreen;n.hasTrueNativeFullScreen=n.hasWebkitNativeFullScreen||n.hasMozNativeFullScreen||n.hasMsNativeFullScreen;n.nativeFullScreenEnabled=n.hasTrueNativeFullScreen;n.hasMozNativeFullScreen?n.nativeFullScreenEnabled=document.mozFullScreenEnabled:n.hasMsNativeFullScreen&&(n.nativeFullScreenEnabled=document.msFullscreenEnabled);n.isChrome&&(n.hasSemiNativeFullScreen=!1);n.hasTrueNativeFullScreen&&(n.fullScreenEventName="",n.hasWebkitNativeFullScreen?n.fullScreenEventName="webkitfullscreenchange":n.hasMozNativeFullScreen?n.fullScreenEventName="mozfullscreenchange":n.hasMsNativeFullScreen&&(n.fullScreenEventName="MSFullscreenChange"),n.isFullScreen=function(){return n.hasMozNativeFullScreen?u.mozFullScreen:n.hasWebkitNativeFullScreen?u.webkitIsFullScreen:n.hasMsNativeFullScreen?null!==u.msFullscreenElement:void 0},n.requestFullScreen=function(t){n.hasWebkitNativeFullScreen?t.webkitRequestFullScreen():n.hasMozNativeFullScreen?t.mozRequestFullScreen():n.hasMsNativeFullScreen&&t.msRequestFullscreen()},n.cancelFullScreen=function(){n.hasWebkitNativeFullScreen?document.webkitCancelFullScreen():n.hasMozNativeFullScreen?document.mozCancelFullScreen():n.hasMsNativeFullScreen&&document.msExitFullscreen()});n.hasSemiNativeFullScreen&&t.match(/mac os x 10_5/i)&&(n.hasNativeFullScreen=!1,n.hasSemiNativeFullScreen=!1)}};mejs.MediaFeatures.init();mejs.HtmlMediaElement={pluginType:"native",isFullScreen:!1,setCurrentTime:function(n){this.currentTime=n},setMuted:function(n){this.muted=n},setVolume:function(n){this.volume=n},stop:function(){this.pause()},setSrc:function(n){for(var t,r,i=this.getElementsByTagName("source");i.length>0;)this.removeChild(i[0]);if("string"==typeof n)this.src=n;else for(t=0;t<n.length;t++)if(r=n[t],this.canPlayType(r.type)){this.src=r.src;break}},setVideoSize:function(n,t){this.width=n;this.height=t}};mejs.PluginMediaElement=function(n,t,i){this.id=n;this.pluginType=t;this.src=i;this.events={};this.attributes={}};mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:!1,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:!0,ended:!1,seeking:!1,duration:0,error:null,tagName:"",muted:!1,volume:1,currentTime:0,play:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.playVideo():this.pluginApi.playMedia(),this.paused=!1)},load:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType||this.pluginApi.loadMedia(),this.paused=!1)},pause:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.pauseVideo():this.pluginApi.pauseMedia(),this.paused=!0)},stop:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.stopVideo():this.pluginApi.stopMedia(),this.paused=!0)},canPlayType:function(n){for(var i,r,u=mejs.plugins[this.pluginType],t=0;t<u.length;t++)if(r=u[t],mejs.PluginDetector.hasPluginVersion(this.pluginType,r.version))for(i=0;i<r.types.length;i++)if(n==r.types[i])return"probably";return""},positionFullscreenButton:function(n,t,i){null!=this.pluginApi&&this.pluginApi.positionFullscreenButton&&this.pluginApi.positionFullscreenButton(Math.floor(n),Math.floor(t),i)},hideFullscreenButton:function(){null!=this.pluginApi&&this.pluginApi.hideFullscreenButton&&this.pluginApi.hideFullscreenButton()},setSrc:function(n){if("string"==typeof n)this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(n)),this.src=mejs.Utility.absolutizeUrl(n);else for(var i,t=0;t<n.length;t++)if(i=n[t],this.canPlayType(i.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(i.src));this.src=mejs.Utility.absolutizeUrl(n);break}},setCurrentTime:function(n){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.seekTo(n):this.pluginApi.setCurrentTime(n),this.currentTime=n)},setVolume:function(n){null!=this.pluginApi&&(this.pluginApi.setVolume("youtube"==this.pluginType?100*n:n),this.volume=n)},setMuted:function(n){null!=this.pluginApi&&("youtube"==this.pluginType?(n?this.pluginApi.mute():this.pluginApi.unMute(),this.muted=n,this.dispatchEvent("volumechange")):this.pluginApi.setMuted(n),this.muted=n)},setVideoSize:function(n,t){this.pluginElement&&this.pluginElement.style&&(this.pluginElement.style.width=n+"px",this.pluginElement.style.height=t+"px");null!=this.pluginApi&&this.pluginApi.setVideoSize&&this.pluginApi.setVideoSize(n,t)},setFullscreen:function(n){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.pluginApi.setFullscreen(n)},enterFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!0)},exitFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!1)},addEventListener:function(n,t){this.events[n]=this.events[n]||[];this.events[n].push(t)},removeEventListener:function(n,t){var r,i;if(!n)return this.events={},!0;if(r=this.events[n],!r)return!0;if(!t)return this.events[n]=[],!0;for(i=0;i<r.length;i++)if(r[i]===t)return this.events[n].splice(i,1),!0;return!1},dispatchEvent:function(n){var t,r,i=this.events[n];if(i)for(r=Array.prototype.slice.call(arguments,1),t=0;t<i.length;t++)i[t].apply(this,r)},hasAttribute:function(n){return n in this.attributes},removeAttribute:function(n){delete this.attributes[n]},getAttribute:function(n){return this.hasAttribute(n)?this.attributes[n]:""},setAttribute:function(n,t){this.attributes[n]=t},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id);mejs.MediaPluginBridge.unregisterPluginElement(this.pluginElement.id)}};mejs.MediaPluginBridge={pluginMediaElements:{},htmlMediaElements:{},registerPluginElement:function(n,t,i){this.pluginMediaElements[n]=t;this.htmlMediaElements[n]=i},unregisterPluginElement:function(n){delete this.pluginMediaElements[n];delete this.htmlMediaElements[n]},initPlugin:function(n){var t=this.pluginMediaElements[n],i=this.htmlMediaElements[n];if(t){switch(t.pluginType){case"flash":t.pluginElement=t.pluginApi=document.getElementById(n);break;case"silverlight":t.pluginElement=document.getElementById(t.id);t.pluginApi=t.pluginElement.Content.MediaElementJS}null!=t.pluginApi&&t.success&&t.success(t,i)}},fireEvent:function(n,t,i){var r,u,e,f=this.pluginMediaElements[n];if(f){r={type:t,target:f};for(u in i)f[u]=i[u],r[u]=i[u];e=i.bufferedTime||0;r.target.buffered=r.buffered={start:function(){return 0},end:function(){return e},length:1};f.dispatchEvent(r.type,r)}}};mejs.MediaElementDefaults={mode:"auto",plugins:["flash","silverlight","youtube","vimeo"],enablePluginDebug:!1,httpsBasicAuthSite:!1,type:"",pluginPath:mejs.Utility.getScriptPath(["mediaelement.js","mediaelement.min.js","mediaelement-and-player.js","mediaelement-and-player.min.js"]),flashName:"flashmediaelement.swf",flashStreamer:"",enablePluginSmoothing:!1,enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",silverlightName:"silverlightmediaelement.xap",defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:.8,success:function(){},error:function(){}};mejs.MediaElement=function(n,t){return mejs.HtmlMediaElementShim.create(n,t)};mejs.HtmlMediaElementShim={create:function(n,t){var i,c,s=mejs.MediaElementDefaults,r="string"==typeof n?document.getElementById(n):n,l=r.tagName.toLowerCase(),a="audio"===l||"video"===l,f=r.getAttribute(a?"src":"href"),e=r.getAttribute("poster"),o=r.getAttribute("autoplay"),u=r.getAttribute("preload"),h=r.getAttribute("controls");for(c in t)s[c]=t[c];return f="undefined"==typeof f||null===f||""==f?null:f,e="undefined"==typeof e||null===e?"":e,u="undefined"==typeof u||null===u||"false"===u?"none":u,o=!("undefined"==typeof o||null===o||"false"===o),h=!("undefined"==typeof h||null===h||"false"===h),i=this.determinePlayback(r,s,mejs.MediaFeatures.supportsMediaTag,a,f),i.url=null!==i.url?mejs.Utility.absolutizeUrl(i.url):"","native"==i.method?(mejs.MediaFeatures.isBustedAndroid&&(r.src=i.url,r.addEventListener("click",function(){r.play()},!1)),this.updateNative(i,s,o,u)):""!==i.method?this.createPlugin(i,s,e,o,u,h):(this.createErrorMessage(i,s,e),this)},determinePlayback:function(n,t,i,r,u){var f,l,a,v,s,h,y,p,c,w,b,e=[],o={method:"",url:"",htmlMediaElement:n,isVideo:"audio"!=n.tagName.toLowerCase()};if("undefined"!=typeof t.type&&""!==t.type)if("string"==typeof t.type)e.push({type:t.type,url:u});else for(f=0;f<t.type.length;f++)e.push({type:t.type[f],url:u});else if(null!==u)h=this.formatType(u,n.getAttribute("type")),e.push({type:h,url:u});else for(f=0;f<n.childNodes.length;f++)s=n.childNodes[f],1==s.nodeType&&"source"==s.tagName.toLowerCase()&&(u=s.getAttribute("src"),h=this.formatType(u,s.getAttribute("type")),b=s.getAttribute("media"),(!b||!window.matchMedia||window.matchMedia&&window.matchMedia(b).matches)&&e.push({type:h,url:u}));if(!r&&e.length>0&&null!==e[0].url&&this.getTypeFromFile(e[0].url).indexOf("audio")>-1&&(o.isVideo=!1),mejs.MediaFeatures.isBustedAndroid&&(n.canPlayType=function(n){return null!==n.match(/video\/(mp4|m4v)/gi)?"maybe":""}),mejs.MediaFeatures.isChromium&&(n.canPlayType=function(n){return null!==n.match(/video\/(webm|ogv|ogg)/gi)?"maybe":""}),!(!i||"auto"!==t.mode&&"auto_plugin"!==t.mode&&"native"!==t.mode||mejs.MediaFeatures.isBustedNativeHTTPS&&t.httpsBasicAuthSite===!0)){for(r||(w=document.createElement(o.isVideo?"video":"audio"),n.parentNode.insertBefore(w,n),n.style.display="none",o.htmlMediaElement=n=w),f=0;f<e.length;f++)if("video/m3u8"==e[f].type||""!==n.canPlayType(e[f].type).replace(/no/,"")||""!==n.canPlayType(e[f].type.replace(/mp3/,"mpeg")).replace(/no/,"")||""!==n.canPlayType(e[f].type.replace(/m4a/,"mp4")).replace(/no/,"")){o.method="native";o.url=e[f].url;break}if("native"===o.method&&(null!==o.url&&(n.src=o.url),"auto_plugin"!==t.mode))return o}if("auto"===t.mode||"auto_plugin"===t.mode||"shim"===t.mode)for(f=0;f<e.length;f++)for(h=e[f].type,l=0;l<t.plugins.length;l++)for(y=t.plugins[l],p=mejs.plugins[y],a=0;a<p.length;a++)if(c=p[a],null==c.version||mejs.PluginDetector.hasPluginVersion(y,c.version))for(v=0;v<c.types.length;v++)if(h==c.types[v])return o.method=y,o.url=e[f].url,o;return"auto_plugin"===t.mode&&"native"===o.method?o:(""===o.method&&e.length>0&&(o.url=e[0].url),o)},formatType:function(n,t){return n&&!t?this.getTypeFromFile(n):t&&~t.indexOf(";")?t.substr(0,t.indexOf(";")):t},getTypeFromFile:function(n){n=n.split("?")[0];var t=n.substring(n.lastIndexOf(".")+1).toLowerCase();return(/(mp4|m4v|ogg|ogv|m3u8|webm|webmv|flv|wmv|mpeg|mov)/gi.test(t)?"video":"audio")+"/"+this.getTypeFromExtension(t)},getTypeFromExtension:function(n){switch(n){case"mp4":case"m4v":case"m4a":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return n}},createErrorMessage:function(n,t,i){var r=n.htmlMediaElement,u=document.createElement("div");u.className="me-cannotplay";try{u.style.width=r.width+"px";u.style.height=r.height+"px"}catch(f){}u.innerHTML=t.customError?t.customError:""!==i?'<a href="'+n.url+'"><img src="'+i+'" width="100%" height="100%" /><\/a>':'<a href="'+n.url+'"><span>'+mejs.i18n.t("Download File")+"<\/span><\/a>";r.parentNode.insertBefore(u,r);r.style.display="none";t.error(r)},createPlugin:function(n,t,i,r,u,f){var k,a,l,s=n.htmlMediaElement,v=1,y=1,h="me_"+n.method+"_"+mejs.meIndex++,o=new mejs.PluginMediaElement(h,n.method,n.url),c=document.createElement("div"),w,b,p,d,e;for(o.tagName=s.tagName,w=0;w<s.attributes.length;w++)b=s.attributes[w],1==b.specified&&o.setAttribute(b.name,b.value);for(a=s.parentNode;null!==a&&"body"!==a.tagName.toLowerCase()&&null!=a.parentNode;){if("p"===a.parentNode.tagName.toLowerCase()){a.parentNode.parentNode.insertBefore(a,a.parentNode);break}a=a.parentNode}switch(n.isVideo?(v=t.pluginWidth>0?t.pluginWidth:t.videoWidth>0?t.videoWidth:null!==s.getAttribute("width")?s.getAttribute("width"):t.defaultVideoWidth,y=t.pluginHeight>0?t.pluginHeight:t.videoHeight>0?t.videoHeight:null!==s.getAttribute("height")?s.getAttribute("height"):t.defaultVideoHeight,v=mejs.Utility.encodeUrl(v),y=mejs.Utility.encodeUrl(y)):t.enablePluginDebug&&(v=320,y=240),o.success=t.success,mejs.MediaPluginBridge.registerPluginElement(h,o,s),c.className="me-plugin",c.id=h+"_container",n.isVideo?s.parentNode.insertBefore(c,s):document.body.insertBefore(c,document.body.childNodes[0]),l=["id="+h,"jsinitfunction=mejs.MediaPluginBridge.initPlugin","jscallbackfunction=mejs.MediaPluginBridge.fireEvent","isvideo="+(n.isVideo?"true":"false"),"autoplay="+(r?"true":"false"),"preload="+u,"width="+v,"startvolume="+t.startVolume,"timerrate="+t.timerRate,"flashstreamer="+t.flashStreamer,"height="+y,"pseudostreamstart="+t.pseudoStreamingStartQueryParam],null!==n.url&&l.push("flash"==n.method?"file="+mejs.Utility.encodeUrl(n.url):"file="+n.url),t.enablePluginDebug&&l.push("debug=true"),t.enablePluginSmoothing&&l.push("smoothing=true"),t.enablePseudoStreaming&&l.push("pseudostreaming=true"),f&&l.push("controls=true"),t.pluginVars&&(l=l.concat(t.pluginVars)),n.method){case"silverlight":c.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+h+'" name="'+h+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="initParams" value="'+l.join(",")+'" /><param name="windowless" value="true" /><param name="background" value="black" /><param name="minRuntimeVersion" value="3.0.0.0" /><param name="autoUpgrade" value="true" /><param name="source" value="'+t.pluginPath+t.silverlightName+'" /><\/object>';break;case"flash":mejs.MediaFeatures.isIE?(k=document.createElement("div"),c.appendChild(k),k.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+h+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="movie" value="'+t.pluginPath+t.flashName+"?x="+new Date+'" /><param name="flashvars" value="'+l.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="scale" value="default" /><\/object>'):c.innerHTML='<embed id="'+h+'" name="'+h+'" play="true" loop="false" quality="high" bgcolor="#000000" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" src="'+t.pluginPath+t.flashName+'" flashvars="'+l.join("&")+'" width="'+v+'" height="'+y+'" scale="default"class="mejs-shim"><\/embed>';break;case"youtube":-1!=n.url.lastIndexOf("youtu.be")?(p=n.url.substr(n.url.lastIndexOf("/")+1),-1!=p.indexOf("?")&&(p=p.substr(0,p.indexOf("?")))):p=n.url.substr(n.url.lastIndexOf("=")+1);youtubeSettings={container:c,containerId:c.id,pluginMediaElement:o,pluginId:h,videoId:p,height:y,width:v};mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])?mejs.YouTubeApi.createFlash(youtubeSettings):mejs.YouTubeApi.enqueueIframe(youtubeSettings);break;case"vimeo":d=h+"_player";(o.vimeoid=n.url.substr(n.url.lastIndexOf("/")+1),c.innerHTML='<iframe src="//player.vimeo.com/video/'+o.vimeoid+"?api=1&portrait=0&byline=0&title=0&player_id="+d+'" width="'+v+'" height="'+y+'" frameborder="0" class="mejs-shim" id="'+d+'" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>',"function"==typeof $f)?(e=$f(c.childNodes[0]),e.addEvent("ready",function(){function n(n,t,i,r){var u={type:i,target:t};"timeupdate"==i&&(t.currentTime=u.currentTime=r.seconds,t.duration=u.duration=r.duration);t.dispatchEvent(u.type,u)}e.playVideo=function(){e.api("play")};e.stopVideo=function(){e.api("unload")};e.pauseVideo=function(){e.api("pause")};e.seekTo=function(n){e.api("seekTo",n)};e.setVolume=function(n){e.api("setVolume",n)};e.setMuted=function(n){n?(e.lastVolume=e.api("getVolume"),e.api("setVolume",0)):(e.api("setVolume",e.lastVolume),delete e.lastVolume)};e.addEvent("play",function(){n(e,o,"play");n(e,o,"playing")});e.addEvent("pause",function(){n(e,o,"pause")});e.addEvent("finish",function(){n(e,o,"ended")});e.addEvent("playProgress",function(t){n(e,o,"timeupdate",t)});o.pluginElement=c;o.pluginApi=e;mejs.MediaPluginBridge.initPlugin(h)})):console.warn("You need to include froogaloop for vimeo to work")}return s.style.display="none",s.removeAttribute("autoplay"),o},updateNative:function(n,t){var r,i=n.htmlMediaElement;for(r in mejs.HtmlMediaElement)i[r]=mejs.HtmlMediaElement[r];return t.success(i,i),i}};mejs.YouTubeApi={isIframeStarted:!1,isIframeLoaded:!1,loadIframeApi:function(){var n,t;this.isIframeStarted||(n=document.createElement("script"),n.src="//www.youtube.com/player_api",t=document.getElementsByTagName("script")[0],t.parentNode.insertBefore(n,t),this.isIframeStarted=!0)},iframeQueue:[],enqueueIframe:function(n){this.isLoaded?this.createIframe(n):(this.loadIframeApi(),this.iframeQueue.push(n))},createIframe:function(n){var i=n.pluginMediaElement,t=new YT.Player(n.containerId,{height:n.height,width:n.width,videoId:n.videoId,playerVars:{controls:0},events:{onReady:function(){n.pluginMediaElement.pluginApi=t;mejs.MediaPluginBridge.initPlugin(n.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(t,i,"timeupdate")},250)},onStateChange:function(n){mejs.YouTubeApi.handleStateChange(n.data,t,i)}}})},createEvent:function(n,t,i){var r={type:i,target:t},u;n&&n.getDuration&&(t.currentTime=r.currentTime=n.getCurrentTime(),t.duration=r.duration=n.getDuration(),r.paused=t.paused,r.ended=t.ended,r.muted=n.isMuted(),r.volume=n.getVolume()/100,r.bytesTotal=n.getVideoBytesTotal(),r.bufferedBytes=n.getVideoBytesLoaded(),u=r.bufferedBytes/r.bytesTotal*r.duration,r.target.buffered=r.buffered={start:function(){return 0},end:function(){return u},length:1});t.dispatchEvent(r.type,r)},iFrameReady:function(){for(this.isLoaded=!0,this.isIframeLoaded=!0;this.iframeQueue.length>0;){var n=this.iframeQueue.pop();this.createIframe(n)}},flashPlayers:{},createFlash:function(n){this.flashPlayers[n.pluginId]=n;var t,i="//www.youtube.com/apiplayer?enablejsapi=1&amp;playerapiid="+n.pluginId+"&amp;version=3&amp;autoplay=0&amp;controls=0&amp;modestbranding=1&loop=0";mejs.MediaFeatures.isIE?(t=document.createElement("div"),n.container.appendChild(t),t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+n.pluginId+'" width="'+n.width+'" height="'+n.height+'" class="mejs-shim"><param name="movie" value="'+i+'" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><\/object>'):n.container.innerHTML='<object type="application/x-shockwave-flash" id="'+n.pluginId+'" data="'+i+'" width="'+n.width+'" height="'+n.height+'" style="visibility: visible; " class="mejs-shim"><param name="allowScriptAccess" value="always"><param name="wmode" value="transparent"><\/object>'},flashReady:function(n){var r=this.flashPlayers[n],t=document.getElementById(n),i=r.pluginMediaElement,u;i.pluginApi=i.pluginElement=t;mejs.MediaPluginBridge.initPlugin(n);t.cueVideoById(r.videoId);u=r.containerId+"_callback";window[u]=function(n){mejs.YouTubeApi.handleStateChange(n,t,i)};t.addEventListener("onStateChange",u);setInterval(function(){mejs.YouTubeApi.createEvent(t,i,"timeupdate")},250);mejs.YouTubeApi.createEvent(t,i,"canplay")},handleStateChange:function(n,t,i){switch(n){case-1:i.paused=!0;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"loadedmetadata");break;case 0:i.paused=!1;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"ended");break;case 1:i.paused=!1;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"play");mejs.YouTubeApi.createEvent(t,i,"playing");break;case 2:i.paused=!0;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"pause");break;case 3:mejs.YouTubeApi.createEvent(t,i,"progress")}}};window.mejs=mejs;window.MediaElement=mejs.MediaElement,function(n,t){"use strict";var i={locale:{language:t.i18n&&t.i18n.locale.language||"",strings:t.i18n&&t.i18n.locale.strings||{}},ietf_lang_regex:/^(x\-)?[a-z]{2,}(\-\w{2,})?(\-\w{2,})?$/,methods:{}};i.getLanguage=function(){var n=i.locale.language||window.navigator.userLanguage||window.navigator.language;return i.ietf_lang_regex.exec(n)?n:null};"undefined"!=typeof mejsL10n&&(i.locale.language=mejsL10n.language);i.methods.checkPlain=function(n){var t,r,i={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"};n=String(n);for(t in i)i.hasOwnProperty(t)&&(r=new RegExp(t,"g"),n=n.replace(r,i[t]));return n};i.methods.t=function(n,t){return i.locale.strings&&i.locale.strings[t.context]&&i.locale.strings[t.context][n]&&(n=i.locale.strings[t.context][n]),i.methods.checkPlain(n)};i.t=function(n,t){if("string"==typeof n&&n.length>0){var r=i.getLanguage();return t=t||{context:r},i.methods.t(n,t)}throw{name:"InvalidArgumentException",message:"First argument is either not a string or empty."};};t.i18n=i}(document,mejs),function(n){"use strict";"undefined"!=typeof mejsL10n&&(n[mejsL10n.language]=mejsL10n.strings)}(mejs.i18n.locale.strings)