text: (function(i,h,k){var j=h.audio&&h.video,m=!1;if(j)i=document.createElement("video"),h.videoBuffered="buffered"in i,m="loop"in i,k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),h.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:h.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(c,g,h,i,k){var f=g.mediaelement,t=g.cfg.mediaelement,
  q=function(a,b){var a=c(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var e=a.attr("type");if(e)d.type=e,d.container=c.trim(e.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=f.getTypeForSrc(d.src,b))d.type=e,d.container=e,g.warn("you should always provide a proper mime-type using the source element. "+d.src+" detected as: "+e),c.nodeName(a[0],"source")&&a.attr("type",
  e);if(e=a.attr("media"))d.media=e;return d},n=swfobject.hasFlashPlayerVersion("9.0.115"),r=function(){g.ready("mediaelement-swf",function(){if(!f.createSWF)g.modules["mediaelement-swf"].test=c.noop,g.reTest(["mediaelement-swf"],j)})};f.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8",
  "m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};f.mimeTypes.source=c.extend({},f.mimeTypes.audio,f.mimeTypes.video);f.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||-1!=a.indexOf("youtube.com/v/"))return"video/youtube";
  var a=a.split("?")[0].split("."),a=a[a.length-1],d;c.each(f.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};f.srces=function(a,b){a=c(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),c.isArray(b)||(b=[b]),b.forEach(function(b){var d=i.createElement("source");"string"==typeof b&&(b={src:b});d.setAttribute("src",b.src);b.type&&d.setAttribute("type",b.type);b.media&&d.setAttribute("media",b.media);a.append(d)});else{var b=[],d=a[0].nodeName.toLowerCase(),
  e=q(a,d);e.src?b.push(e):c("source",a).each(function(){e=q(this,d);e.src&&b.push(e)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==k&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));f.srces(this,a);c(this).mediaLoad()})};f.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
  f.canSwfPlaySrces=function(a,b){var d="";n&&(a=c(a),b=b||f.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&-1!=f.swfMimeTypes.indexOf(b.container))return d=b,!1}));return d};var l={};f.canNativePlaySrces=function(a,b){var d="";if(j){var a=c(a),e=(a[0].nodeName||"").toLowerCase();if(!l[e])return d;b=b||f.srces(a);c.each(b,function(b,c){if(c.type&&l[e].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};f.setError=function(a,b){b||(b="can't play sources");c(a).pause().data("mediaerror",
  b);g.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var s=function(){var a;return function(b,d,c){g.ready("mediaelement-swf",function(){f.createSWF?f.createSWF(b,d,c):a||(a=!0,r(),s(b,d,c))})}}(),o=function(a,b,d,c,g){d||!1!==d&&b&&"flash"==b.isActive?(d=f.canSwfPlaySrces(a,c))?s(a,d,b):g?f.setError(a,!1):o(a,b,!1,c,!0):(d=f.canNativePlaySrces(a,c))?b&&"flash"==b.isActive&&f.setActive(a,"html5",b):g?(f.setError(a,!1),b&&"flash"==b.isActive&&
  f.setActive(a,"html5",b)):o(a,b,!0,c,!0)},u=/^(?:embed|object|datalist)$/i,p=function(a,b){var d=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{}),e=f.srces(a),h=a.parentNode;clearTimeout(d.loadTimer);c.data(a,"mediaerror",!1);if(e.length&&h&&!(1!=h.nodeType||u.test(h.nodeName||"")))b=b||g.data(a,"mediaelement"),o(a,b,t.preferFlash||k,e)};c(i).bind("ended",function(a){var b=g.data(a.target,"mediaelement");(!m||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,
  "paused")&&c.prop(a.target,"loop")&&c(a.target).prop("currentTime",0).play()},1)});m||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=g.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=g.data(this,"mediaelement");p(this,a);j&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});l[a]=g.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var e="";j&&l[a].prop._supvalue&&(e=l[a].prop._supvalue.call(this,
  b),"no"==e&&(e=""));!e&&n&&(b=c.trim((b||"").split(";")[0]),-1!=f.swfMimeTypes.indexOf(b)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){p(a);a=null},9)}});h=function(){g.addReady(function(a,b){c("video, audio",a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<g.browserVersion&&c.prop(this,
  "paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():p(this);if(j){var a,b,f=this,h=function(){var a=c.prop(f,"buffered");if(a){for(var b="",d=0,e=a.length;d<e;d++)b+=a.end(d);return b}},i=function(){var a=h();a!=b&&(b=a,c(f).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(b=h());clearTimeout(a);a=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",
  function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};j?(g.isReady("mediaelement-core",!0),h(),n&&g.ready("WINDOWLOAD mediaelement",r)):g.ready("mediaelement-swf",h)})})(jQuery,Modernizr,jQuery.webshims);
  