Changeset 96378 in spip-zone


Ignore:
Timestamp:
Apr 1, 2016, 12:53:12 PM (5 years ago)
Author:
marcimat@…
Message:

mise à jour de html5media en version 1.1.8

Location:
_plugins_/videos/trunk/lib/html5media-1.1.8
Files:
2 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • _plugins_/videos/trunk/lib/html5media-1.1.8/api/html5media.min.js

    r64694 r96378  
    1 (function(){function j(a){if(!a||typeof a!="object")return a;var b=new a.constructor,e;for(e in a)a.hasOwnProperty(e)&&(b[e]=j(a[e]));return b}function i(a,b){if(a){var e,d=0,c=a.length;if(c===void 0)for(e in a){if(b.call(a[e],e,a[e])===!1)break}else for(e=a[0];d<c&&b.call(e,d,e)!==!1;e=a[++d]);return a}}function n(a,b,e){if(typeof b!="object")return a;a&&b&&i(b,function(d,b){if(!e||typeof b!="function")a[d]=b});return a}function r(a){var b=a.indexOf(".");if(b!=-1){var e=a.slice(0,b)||"*",d=a.slice(b+
    2 1,a.length),c=[];i(document.getElementsByTagName(e),function(){this.className&&this.className.indexOf(d)!=-1&&c.push(this)});return c}}function g(a){a=a||window.event;a.preventDefault?(a.stopPropagation(),a.preventDefault()):(a.returnValue=!1,a.cancelBubble=!0);return!1}function o(a,b,e){a[b]=a[b]||[];a[b].push(e)}function t(){return"_"+(""+Math.random()).slice(2,10)}function k(a,p,e){var d=this,h=null,k=!1,m,v,f=[],q={},s={},u,y,x,z,A,r;n(d,{id:function(){return u},isLoaded:function(){return h!==
    3 null&&h.fp_play!==void 0&&!k},getParent:function(){return a},hide:function(b){if(b)a.style.height="0px";if(d.isLoaded())h.style.height="0px";return d},show:function(){a.style.height=r+"px";if(d.isLoaded())h.style.height=A+"px";return d},isHidden:function(){return d.isLoaded()&&parseInt(h.style.height,10)===0},load:function(b){if(!d.isLoaded()&&d._fireEvent("onBeforeLoad")!==!1){var f=0;i(c,function(){this.unload(function(){if(++f==c.length){if((m=a.innerHTML)&&!flashembed.isSupported(p.version))a.innerHTML=
    4 "";if(b)b.cached=!0,o(s,"onLoad",b);flashembed(a,p,{config:e})}})})}return d},unload:function(b){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent))return b&&b(!1),d;if(m.replace(/\s/g,"")!==""){if(d._fireEvent("onBeforeUnload")===!1)return b&&b(!1),d;k=!0;try{h&&(h.fp_close(),d._fireEvent("onUnload"))}catch(f){}setTimeout(function(){h=null;a.innerHTML=m;k=!1;b&&b(!0)},50)}else b&&b(!1);return d},getClip:function(a){a===void 0&&(a=z);return f[a]},getCommonClip:function(){return v},getPlaylist:function(){return f},
    5 getPlugin:function(a){var f=q[a];if(!f&&d.isLoaded()){var e=d._api().fp_getPlugin(a);e&&(f=new b(a,e,d),q[a]=f)}return f},getScreen:function(){return d.getPlugin("screen")},getControls:function(){return d.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return d.getPlugin("logo")._fireEvent("onUpdate")}catch(a){}},getPlay:function(){return d.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(a){return a?j(e):e},getFlashParams:function(){return p},loadPlugin:function(a,
    6 f,e,c){typeof e=="function"&&(c=e,e={});var p=c?t():"_";d._api().fp_loadPlugin(a,f,e,p);f={};f[p]=c;c=new b(a,null,d,f);return q[a]=c},getState:function(){return d.isLoaded()?h.fp_getState():-1},play:function(a,b){var f=function(){a!==void 0?d._api().fp_play(a,b):d._api().fp_play()};d.isLoaded()?f():k?setTimeout(function(){d.play(a,b)},50):d.load(function(){f()});return d},getVersion:function(){if(d.isLoaded()){var a=h.fp_getVersion();a.push("flowplayer.js 3.2.6");return a}return"flowplayer.js 3.2.6"},
    7 _api:function(){if(!d.isLoaded())throw"Flowplayer "+d.id()+" not loaded when calling an API method";return h},setClip:function(a){d.setPlaylist([a]);return d},getIndex:function(){return x},_swfHeight:function(){return h.clientHeight}});i("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var a="on"+this;if(a.indexOf("*")!=-1){var a=a.slice(0,a.length-1),b="onBefore"+a.slice(2);d[b]=function(a){o(s,
    8 b,a);return d}}d[a]=function(b){o(s,a,b);return d}});i("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled".split(","),function(){var a=this;d[a]=function(b,f){if(!d.isLoaded())return d;var e=null,e=b!==void 0&&f!==void 0?h["fp_"+a](b,f):b===void 0?h["fp_"+a]():h["fp_"+a](b);return e==="undefined"||
    9 e===void 0?d:e}});d._fireEvent=function(a){typeof a=="string"&&(a=[a]);var b=a[0],c=a[1],p=a[2],u=a[3],g=0;e.debug&&console.log("$f.fireEvent",[].slice.call(a));!d.isLoaded()&&b=="onLoad"&&c=="player"&&(h=h||document.getElementById(y),A=d._swfHeight(),i(f,function(){this._fireEvent("onLoad")}),i(q,function(a,b){b._fireEvent("onUpdate")}),v._fireEvent("onLoad"));if(!(b=="onLoad"&&c!="player")){if(b=="onError"&&(typeof c=="string"||typeof c=="number"&&typeof p=="number"))c=p,p=u;if(b=="onContextMenu")i(e.contextMenu[c],
    10 function(a,b){b.call(d)});else if(b=="onPluginEvent"||b=="onBeforePluginEvent"){if(u=q[c.name||c])return u._fireEvent("onUpdate",c),u._fireEvent(p,a.slice(3))}else{if(b=="onPlaylistReplace"){f=[];var k=0;i(c,function(){f.push(new l(this,k++,d))})}if(b=="onClipAdd"){if(c.isInStream)return;c=new l(c,p,d);f.splice(p,0,c);for(g=p+1;g<f.length;g++)f[g].index++}var m=!0;if(typeof c=="number"&&c<f.length&&(z=c,(a=f[c])&&(m=a._fireEvent(b,p,u)),!a||m!==!1))m=v._fireEvent(b,p,u,a);i(s[b],function(){m=this.call(d,
    11 c,p);this.cached&&s[b].splice(g,1);if(m===!1)return!1;g++});return m}}};if(typeof a=="string"){var w=document.getElementById(a);if(!w)throw"Flowplayer cannot access element: "+a;a=w}(function(){function h(a){var b=d.hasiPadSupport&&d.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(f[0].url)&&!b)return!0;!d.isLoaded()&&d._fireEvent("onBeforeClick")!==!1&&d.load();return g(a)}$f(a)?($f(a).getParent().innerHTML="",x=$f(a).getIndex(),c[x]=d):(c.push(d),x=c.length-1);
    12 r=parseInt(a.style.height,10)||a.clientHeight;u=a.id||"fp"+t();y=p.id||u+"_api";p.id=y;e.playerId=u;typeof e=="string"&&(e={clip:{url:e}});if(typeof e.clip=="string")e.clip={url:e.clip};e.clip=e.clip||{};if(a.getAttribute("href",2)&&!e.clip.url)e.clip.url=a.getAttribute("href",2);v=new l(e.clip,-1,d);e.playlist=e.playlist||[e.clip];var k=0;i(e.playlist,function(){var a=this;typeof a=="object"&&a.length&&(a={url:""+a});i(e.clip,function(b,f){f!==void 0&&a[b]===void 0&&typeof f!="function"&&(a[b]=f)});
    13 e.playlist[k]=a;a=new l(a,k,d);f.push(a);k++});i(e,function(a,b){if(typeof b=="function"){if(v[a])v[a](b);else o(s,a,b);delete e[a]}});i(e.plugins,function(a,f){f&&(q[a]=new b(a,f,d))});if(!e.plugins||e.plugins.controls===void 0)q.controls=new b("controls",null,d);q.canvas=new b("canvas",null,d);m=a.innerHTML;setTimeout(function(){m.replace(/\s/g,"")!==""?a.addEventListener?a.addEventListener("click",h,!1):a.attachEvent&&a.attachEvent("onclick",h):(a.addEventListener&&a.addEventListener("click",g,
    14 !1),d.load())},0)})()}function m(a){this.length=a.length;this.each=function(b){i(a,b)};this.size=function(){return a.length}}var l=function(a,b,e){var c=this,h={},l={};c.index=b;typeof a=="string"&&(a={url:a});n(this,a,!0);i("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var a="on"+this;if(a.indexOf("*")!=-1){var a=a.slice(0,a.length-1),f="onBefore"+a.slice(2);c[f]=function(a){o(l,f,a);return c}}c[a]=function(b){o(l,a,b);
    15 return c};b==-1&&(c[f]&&(e[f]=c[f]),c[a]&&(e[a]=c[a]))});n(this,{onCuepoint:function(a,f){if(arguments.length==1)return h.embedded=[null,a],c;typeof a=="number"&&(a=[a]);var q=t();h[q]=[a,f];e.isLoaded()&&e._api().fp_addCuepoints(a,b,q);return c},update:function(a){n(c,a);e.isLoaded()&&e._api().fp_updateClip(a,b);var f=e.getConfig();n(b==-1?f.clip:f.playlist[b],a,!0)},_fireEvent:function(a,f,q,s){if(a=="onLoad")return i(h,function(a,f){f[0]&&e._api().fp_addCuepoints(f[0],b,a)}),!1;s=s||c;if(a=="onCuepoint"){var u=
    16 h[f];if(u)return u[1].call(e,s,q)}if(f&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(a)!=-1&&(n(s,f),f.metaData))s.duration?s.fullDuration=f.metaData.duration:s.duration=f.metaData.duration;var g=!0;i(l[a],function(){g=this.call(e,s,f,q)});return g}});if(a.onCuepoint){var g=a.onCuepoint;c.onCuepoint.apply(c,typeof g=="function"?[g]:g);delete a.onCuepoint}i(a,function(b,f){typeof f=="function"&&(o(l,b,f),delete a[b])});if(b==-1)e.onCuepoint=this.onCuepoint},b=function(a,b,c,d){var h=
    17 this,g={},l=!1;d&&n(g,d);i(b,function(a,c){typeof c=="function"&&(g[a]=c,delete b[a])});n(this,{animate:function(d,f,q){if(!d)return h;typeof f=="function"&&(q=f,f=500);if(typeof d=="string"){var s=d,d={};d[s]=f;f=500}if(q){var l=t();g[l]=q}f===void 0&&(f=500);b=c._api().fp_animate(a,d,f,l);return h},css:function(d,f){if(f!==void 0){var q={};q[d]=f;d=q}b=c._api().fp_css(a,d);n(h,b);return h},show:function(){this.display="block";c._api().fp_showPlugin(a);return h},hide:function(){this.display="none";
    18 c._api().fp_hidePlugin(a);return h},toggle:function(){this.display=c._api().fp_togglePlugin(a);return h},fadeTo:function(b,f,d){typeof f=="function"&&(d=f,f=500);if(d){var p=t();g[p]=d}this.display=c._api().fp_fadeTo(a,b,f,p);this.opacity=b;return h},fadeIn:function(a,b){return h.fadeTo(1,a,b)},fadeOut:function(a,b){return h.fadeTo(0,a,b)},getName:function(){return a},getPlayer:function(){return c},_fireEvent:function(b,f){if(b=="onUpdate"){var d=c._api().fp_getPlugin(a);if(!d)return;n(h,d);delete h.methods;
    19 l||(i(d.methods,function(){var b=""+this;h[b]=function(){var f=[].slice.call(arguments),f=c._api().fp_invoke(a,b,f);return f==="undefined"||f===void 0?h:f}}),l=!0)}return(d=g[b])?(d=d.apply(h,f),b.slice(0,1)=="_"&&delete g[b],d):h}})},c=[];window.flowplayer=window.$f=function(){var a=null,b=arguments[0];if(!arguments.length)return i(c,function(){if(this.isLoaded())return a=this,!1}),a||c[0];if(arguments.length==1)if(typeof b=="number")return c[b];else{if(b=="*")return new m(c);i(c,function(){if(this.id()==
    20 b.id||this.id()==b||this.getParent()==b)return a=this,!1});return a}if(arguments.length>1){var e=arguments[1],d=arguments.length==3?arguments[2]:{};typeof e=="string"&&(e={src:e});e=n({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:!1},e);if(typeof b=="string")if(b.indexOf(".")!=-1){var h=[];i(r(b),function(){h.push(new k(this,j(e),j(d)))});return new m(h)}else{var g=document.getElementById(b);return new k(g!==null?g:b,e,d)}else if(b)return new k(b,
    21 e,d)}return null};n(window.$f,{fireEvent:function(){var a=[].slice.call(arguments),b=$f(a[0]);return b?b._fireEvent(a.slice(1)):null},addPlugin:function(a,b){k.prototype[a]=b;return $f},each:i,extend:n});if(typeof jQuery=="function")jQuery.fn.flowplayer=function(a,b){if(!arguments.length||typeof arguments[0]=="number"){var c=[];this.each(function(){var a=$f(this);a&&c.push(a)});return arguments.length?c[arguments[0]]:new m(c)}return this.each(function(){$f(this,j(a),b?j(b):{})})}})();
    22 (function(){function j(){if(l.done)return!1;var b=document;if(b&&b.getElementsByTagName&&b.getElementById&&b.body){clearInterval(l.timer);l.timer=null;for(b=0;b<l.ready.length;b++)l.ready[b].call();l.ready=null;l.done=!0}}function i(b,c){if(c)for(key in c)c.hasOwnProperty(key)&&(b[key]=c[key]);return b}function n(b){switch(r(b)){case "string":return b=b.replace(RegExp('(["\\\\])',"g"),"\\$1"),b=b.replace(/^\s?(\d+)%/,"$1pct"),'"'+b+'"';case "array":return"["+g(b,function(a){return n(a)}).join(",")+
    23 "]";case "function":return'"function()"';case "object":var c=[],a;for(a in b)b.hasOwnProperty(a)&&c.push('"'+a+'":'+n(b[a]));return"{"+c.join(",")+"}"}return String(b).replace(/\s/g," ").replace(/\'/g,'"')}function r(b){if(b===null||b===void 0)return!1;var c=typeof b;return c=="object"&&b.push?"array":c}function g(b,c){var a=[],g;for(g in b)b.hasOwnProperty(g)&&(a[g]=c(b[g]));return a}function o(b,c){var a=i({},b),g=document.all,e='<object width="'+a.width+'" height="'+a.height+'"';if(g&&!a.id)a.id=
    24 "_"+(""+Math.random()).substring(9);a.id&&(e+=' id="'+a.id+'"');a.cachebusting&&(a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random());e+=a.w3c||!g?' data="'+a.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';e+=">";if(a.w3c||g)e+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;for(var d in a)a[d]!==null&&(e+='<param name="'+d+'" value="'+a[d]+'" />');a="";if(c){for(var h in c)c[h]!==null&&(a+=h+"="+(typeof c[h]==
    25 "object"?n(c[h]):c[h])+"&");a=a.substring(0,a.length-1);e+='<param name="flashvars" value=\''+a+"' />"}e+="</object>";return e}function t(b,c,a){var g=flashembed.getVersion();i(this,{getContainer:function(){return b},getConf:function(){return c},getVersion:function(){return g},getFlashvars:function(){return a},getApi:function(){return b.firstChild},getHTML:function(){return o(c,a)}});var e=c.version,d=c.expressInstall,h=!e||flashembed.isSupported(e);if(h)c.onFail=c.version=c.expressInstall=null,b.innerHTML=
    26 o(c,a);else if(e&&d&&flashembed.isSupported([6,65]))i(c,{src:d}),a={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title},b.innerHTML=o(c,a);else if(b.innerHTML.replace(/\s/g,"")===""&&(b.innerHTML="<h2>Flash version "+e+" or greater is required</h2><h3>"+(g[0]>0?"Your version is "+g:"You have no flash plugin installed")+"</h3>"+(b.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>"),
    27 b.tagName=="A"))b.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"};if(!h&&c.onFail&&(e=c.onFail.call(this),typeof e=="string"))b.innerHTML=e;document.all&&(window[c.id]=document.getElementById(c.id))}var k=typeof jQuery=="function",m={width:"100%",height:"100%",allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};if(k)jQuery.tools=jQuery.tools||{},jQuery.tools.flashembed={version:"1.0.4",conf:m};
    28 var l=k?jQuery:function(b){if(l.done)return b();l.timer?l.ready.push(b):(l.ready=[b],l.timer=setInterval(j,13))};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(b,c,a){if(typeof b=="string"){var g=document.getElementById(b);if(g)b=g;else{l(function(){flashembed(b,c,a)});return}}if(b)return typeof c=="string"&&(c={src:c}),g=i({},m),i(g,c),new t(b,g,a)};i(window.flashembed,{getVersion:function(){var b=
    29 [0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var c=navigator.plugins["Shockwave Flash"].description;typeof c!="undefined"&&(c=c.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),b=parseInt(c.replace(/^(.*)\..*$/,"$1"),10),c=/r/.test(c)?parseInt(c.replace(/^.*r(.*)$/,"$1"),10):0,b=[b,c])}else if(window.ActiveXObject){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(a){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),b=[6,0],c.AllowScriptAccess="always"}catch(g){if(b[0]==
    30 6)return b}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}typeof c=="object"&&(c=c.GetVariable("$version"),typeof c!="undefined"&&(c=c.replace(/^\S+\s+(.*)$/,"$1").split(","),b=[parseInt(c[0],10),parseInt(c[2],10)]))}return b},isSupported:function(b){var c=flashembed.getVersion();return c[0]>b[0]||c[0]==b[0]&&c[1]>=b[1]},domReady:l,asString:n,getHTML:o});if(k)jQuery.fn.flashembed=function(b,c){var a=null;this.each(function(){a=flashembed(this,b,c)});return b.api===!1?this:a}})();(function(){function j(){if(!k&&(k=!0,m)){for(var g=0;g<m.length;g++)m[g].call(window,[]);m=[]}}function i(g){var b=window.onload;window.onload=typeof window.onload!="function"?g:function(){b&&b();g()}}function n(){if(!t){t=!0;document.addEventListener&&!o.opera&&document.addEventListener("DOMContentLoaded",j,!1);o.msie&&window==top&&function(){if(!k){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}j()}}();o.opera&&document.addEventListener("DOMContentLoaded",
    31 function(){if(!k){for(var b=0;b<document.styleSheets.length;b++)if(document.styleSheets[b].disabled){setTimeout(arguments.callee,0);return}j()}},!1);if(o.safari){var g;(function(){if(!k)if(document.readyState!="loaded"&&document.readyState!="complete")setTimeout(arguments.callee,0);else{if(g===void 0){for(var b=document.getElementsByTagName("link"),c=0;c<b.length;c++)b[c].getAttribute("rel")=="stylesheet"&&g++;b=document.getElementsByTagName("style");g+=b.length}document.styleSheets.length!=g?setTimeout(arguments.callee,
    32 0):j()}})()}i(j)}}var r=window.DomReady={},g=navigator.userAgent.toLowerCase(),o={version:(g.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(g),opera:/opera/.test(g),msie:/msie/.test(g)&&!/opera/.test(g),mozilla:/mozilla/.test(g)&&!/(compatible|webkit)/.test(g)},t=!1,k=!1,m=[];r.ready=function(g){n();k?g.call(window,[]):m.push(function(){return g.call(window,[])})};n()})();(function(j,i){function n(b,c){return b.canPlayType(c)||a&&c.search("mp4")>-1}function r(b){for(var c=i.getElementsByTagName(b),d=[],e=0;e<c.length;e++)d.push(c[e]);for(e=0;e<d.length;e++){var c=d[e],h=!0;if(c.canPlayType)if(c.src)n(c,t(b,c.src))&&(h=!1);else for(var l=c.getElementsByTagName("source"),k=0;k<l.length;k++){var m=l[k];if(n(c,t(b,m.src,m.type))){h=!1;break}}h||g.forceFallback(b,c)?g.createFallback(b,c):a&&c.addEventListener("click",function(){this.play()},!1)}}function g(){r("video");
    33 r("audio")}function o(a){return a.split("/").slice(0,-1).join("/")+"/"}function t(a,b,c){return c||B[a][b.split(".").slice(-1)[0]]||d[a]}function k(a,b){var c=a.getAttribute(b);return c==!0||typeof c=="string"}function m(a){return a.substr(0,1)=="/"?C+a:a.substr(0,1)=="."||!a.match(/^\s*\w+:\/\//)?v+a:a}function l(a,b,c){var d=a.getAttribute(b);if(d)return d+"px";if(a.currentStyle)a=a.currentStyle[b];else if(j.getComputedStyle)a=i.defaultView.getComputedStyle(a,null).getPropertyValue(b);else return c;
    34 return a=="auto"?c:a}function b(a){return a.match(/\s*([\w-]+\/[\w-]+)(;|\s|$)/)[1]}function c(a,c){return b(a)==b(c)}i.createElement("video").canPlayType||(i.createElement("audio"),i.createElement("source"));var a=j.navigator.userAgent.toLowerCase().match(/android 2\.[12]/)!==null,p=j.navigator.userAgent.toLowerCase().match(/opera/)!==null;g.forceFallback=function(){return!1};var e=function(){for(var a=i.getElementsByTagName("script"),b=0;b<a.length;b++){var c=a[b];if(c.src.match(/html5media(\.min|)\.js/))return o(c.src)}return""}();
    35 g.flowplayerSwf=e+"flowplayer.swf";g.flowplayerAudioSwf=e+"flowplayer.audio.swf";g.flowplayerControlsSwf=e+"flowplayer.controls.swf";var d={video:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',audio:"audio/mpeg;"},h=['video/mp4; codecs="avc1.42E01E, mp4a.40.2"',"audio/x-m4a;","audio/mpeg;"],B={video:{ogg:'video/ogg; codecs="theora, vorbis"',ogv:'video/ogg; codecs="theora, vorbis"',avi:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',mp4:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',mkv:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',
    36 h264:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',264:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',avc:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',m4v:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',"3gp":'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',"3gpp":'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',"3g2":'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',mpg:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',mpeg:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',webm:"video/webm;"},audio:{ogg:'audio/ogg; codecs="vorbis"',
    37 oga:'audio/ogg; codecs="vorbis"',aac:"audio/x-m4a;",m4a:"audio/x-m4a;",mp3:"audio/mpeg;",wav:'audio/wav; codecs="1"'}},C=j.location.protocol+"//"+j.location.host,v=String(j.location),v=o(function(){for(var a=i.getElementsByTagName("base"),b=0;b<a.length;b++){var c=a[0];if(c.href)return c.href}return String(j.location)}());g.configureFlowplayer=function(a,b){return b};g.createFallback=function(a,b){var d=k(b,"controls"),e=b.getAttribute("poster")||"",n=b.getAttribute("src")||"";if(!n)for(var j=b.getElementsByTagName("source"),
    38 o=0;o<j.length;o++){var r=j[o],v=r.getAttribute("src");if(v)for(var w=0;w<h.length;w++)if(c(h[w],t(a,v,r.getAttribute("type")))){n=v;break}if(n)break}if(n){j=i.createElement("span");j.id=b.id;j.className=b.className;j.title=b.title;j.style.display="block";j.style.width=l(b,"width","300px");j.style.height=a=="audio"?"26px":l(b,"height","200px");b.parentNode.replaceChild(j,b);r=(b.getAttribute("preload")||"").toLowerCase();o=[];e&&o.push({url:m(e)});n&&o.push({url:m(n),autoPlay:k(b,"autoplay"),autoBuffering:k(b,
    39 "autobuffer")||k(b,"preload")&&(r==""||r=="auto"),onBeforeFinish:function(){return!k(b,"loop")}});e={controls:d&&{url:m(g.flowplayerControlsSwf),opacity:0.8,backgroundColor:"#181818",backgroundGradient:"none",fullscreen:a=="video",autoHide:a=="video"&&{fullscreenOnly:!1,enabled:!0,hideStyle:"fade",mouseOutDelay:0}||{enabled:!1}}||null};if(p&&e.controls)e.controls.autoHide.enabled=!1;if(a=="audio"){e.audio={url:m(g.flowplayerAudioSwf)};if(!d)e.controls={url:m(g.flowplayerControlsSwf),display:"none"},
    40 j.style.height=0;o[o.length-1].autoBuffering=!1}d={play:null,playlist:o,clip:{scaling:"fit",fadeInSpeed:0,fadeOutSpeed:0},canvas:{backgroundGradient:"none",backgroundColor:"#000000"},plugins:e};d=g.configureFlowplayer(b,d);flowplayer(j,{src:m(g.flowplayerSwf),wmode:"opaque"},d)}};DomReady.ready(g);j.html5media=g})(this,document);
     1!function(){function e(e){console.log("$f.fireEvent",[].slice.call(e))}function t(e){if(!e||"object"!=typeof e)return e;var n=new e.constructor;for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function n(e,t){if(e){var n,r=0,i=e.length;if(void 0===i){for(n in e)if(t.call(e[n],n,e[n])===!1)break}else for(var o=e[0];i>r&&t.call(o,r,o)!==!1;o=e[++r]);return e}}function r(e){return document.getElementById(e)}function i(e,t,r){return"object"!=typeof t?e:(e&&t&&n(t,function(t,n){r&&"function"==typeof n||(e[t]=n)}),e)}function o(e){var t=e.indexOf(".");if(-1!=t){var r=e.slice(0,t)||"*",i=e.slice(t+1,e.length),o=[];return n(document.getElementsByTagName(r),function(){this.className&&-1!=this.className.indexOf(i)&&o.push(this)}),o}}function a(e){return e=e||window.event,e.preventDefault?(e.stopPropagation(),e.preventDefault()):(e.returnValue=!1,e.cancelBubble=!0),!1}function u(e,t,n){e[t]=e[t]||[],e[t].push(n)}function l(){return"_"+(""+Math.random()).slice(2,10)}function s(o,s,f){function g(){function e(e){var t=S.hasiPadSupport&&S.hasiPadSupport();return!/iPad|iPhone|iPod/i.test(navigator.userAgent)||/.flv$/i.test(C[0].url)||t?(S.isLoaded()||S._fireEvent("onBeforeClick")===!1||S.load(),a(e)):!0}function t(){""!==h.replace(/\s/g,"")?o.addEventListener?o.addEventListener("click",e,!1):o.attachEvent&&o.attachEvent("onclick",e):(o.addEventListener&&o.addEventListener("click",a,!1),S.load())}$f(o)?($f(o).getParent().innerHTML="",w=$f(o).getIndex(),p[w]=S):(p.push(S),w=p.length-1),E=parseInt(o.style.height,10)||o.clientHeight,y=o.id||"fp"+l(),m=s.id||y+"_api",s.id=m,f.playerId=y,"string"==typeof f&&(f={clip:{url:f}}),"string"==typeof f.clip&&(f.clip={url:f.clip}),f.clip=f.clip||{},o.getAttribute("href",2)&&!f.clip.url&&(f.clip.url=o.getAttribute("href",2)),v=new c(f.clip,-1,S),f.playlist=f.playlist||[f.clip];var r=0;n(f.playlist,function(){var e=this;"object"==typeof e&&e.length&&(e={url:""+e}),n(f.clip,function(t,n){void 0!==n&&void 0===e[t]&&"function"!=typeof n&&(e[t]=n)}),f.playlist[r]=e,e=new c(e,r,S),C.push(e),r++}),n(f,function(e,t){"function"==typeof t&&(v[e]?v[e](t):u(x,e,t),delete f[e])}),n(f.plugins,function(e,t){t&&(k[e]=new d(e,t,S))}),f.plugins&&void 0!==f.plugins.controls||(k.controls=new d("controls",null,S)),k.canvas=new d("canvas",null,S),h=o.innerHTML,setTimeout(t,0)}var h,v,y,m,w,b,_,E,S=this,L=null,P=!1,C=[],k={},x={};if(i(S,{id:function(){return y},isLoaded:function(){return null!==L&&void 0!==L.fp_play&&!P},getParent:function(){return o},hide:function(e){return e&&(o.style.height="0px"),S.isLoaded()&&(L.style.height="0px"),S},show:function(){return o.style.height=E+"px",S.isLoaded()&&(L.style.height=_+"px"),S},isHidden:function(){return S.isLoaded()&&0===parseInt(L.style.height,10)},load:function(e){if(!S.isLoaded()&&S._fireEvent("onBeforeLoad")!==!1){var t=function(){h=o.innerHTML,h&&!flashembed.isSupported(s.version)&&(o.innerHTML=""),e&&(e.cached=!0,u(x,"onLoad",e)),flashembed(o,s,{config:f})},r=0;n(p,function(){this.unload(function(){++r==p.length&&t()})})}return S},unload:function(e){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent))return e&&e(!1),S;if(""!==h.replace(/\s/g,"")){if(S._fireEvent("onBeforeUnload")===!1)return e&&e(!1),S;P=!0;try{L&&(L.fp_close(),S._fireEvent("onUnload"))}catch(t){}var n=function(){L=null,o.innerHTML=h,P=!1,e&&e(!0)};setTimeout(n,50)}else e&&e(!1);return S},getClip:function(e){return void 0===e&&(e=b),C[e]},getCommonClip:function(){return v},getPlaylist:function(){return C},getPlugin:function(e){var t=k[e];if(!t&&S.isLoaded()){var n=S._api().fp_getPlugin(e);n&&(t=new d(e,n,S),k[e]=t)}return t},getScreen:function(){return S.getPlugin("screen")},getControls:function(){return S.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return S.getPlugin("logo")._fireEvent("onUpdate")}catch(e){}},getPlay:function(){return S.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(e){return e?t(f):f},getFlashParams:function(){return s},loadPlugin:function(e,t,n,r){"function"==typeof n&&(r=n,n={});var i=r?l():"_";S._api().fp_loadPlugin(e,t,n,i);var o={};o[i]=r;var a=new d(e,null,S,o);return k[e]=a,a},getState:function(){return S.isLoaded()?L.fp_getState():-1},play:function(e,t){var n=function(){void 0!==e?S._api().fp_play(e,t):S._api().fp_play()};return S.isLoaded()?n():P?setTimeout(function(){S.play(e,t)},50):S.load(function(){n()}),S},getVersion:function(){var e="flowplayer.js 3.2.6";if(S.isLoaded()){var t=L.fp_getVersion();return t.push(e),t}return e},_api:function(){if(!S.isLoaded())throw"Flowplayer "+S.id()+" not loaded when calling an API method";return L},setClip:function(e){return S.setPlaylist([e]),S},getIndex:function(){return w},_swfHeight:function(){return L.clientHeight}}),n("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var e="on"+this;if(-1!=e.indexOf("*")){e=e.slice(0,e.length-1);var t="onBefore"+e.slice(2);S[t]=function(e){return u(x,t,e),S}}S[e]=function(t){return u(x,e,t),S}}),n("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled".split(","),function(){var e=this;S[e]=function(t,n){if(!S.isLoaded())return S;var r=null;return r=void 0!==t&&void 0!==n?L["fp_"+e](t,n):void 0===t?L["fp_"+e]():L["fp_"+e](t),"undefined"===r||void 0===r?S:r}}),S._fireEvent=function(t){"string"==typeof t&&(t=[t]);var i=t[0],o=t[1],a=t[2],u=t[3],l=0;if(f.debug&&e(t),S.isLoaded()||"onLoad"!=i||"player"!=o||(L=L||r(m),_=S._swfHeight(),n(C,function(){this._fireEvent("onLoad")}),n(k,function(e,t){t._fireEvent("onUpdate")}),v._fireEvent("onLoad")),"onLoad"!=i||"player"==o){if("onError"==i&&("string"==typeof o||"number"==typeof o&&"number"==typeof a)&&(o=a,a=u),"onContextMenu"==i)return void n(f.contextMenu[o],function(e,t){t.call(S)});if("onPluginEvent"!=i&&"onBeforePluginEvent"!=i){if("onPlaylistReplace"==i){C=[];var s=0;n(o,function(){C.push(new c(this,s++,S))})}if("onClipAdd"==i){if(o.isInStream)return;for(o=new c(o,a,S),C.splice(a,0,o),l=a+1;l<C.length;l++)C[l].index++}var d=!0;if("number"==typeof o&&o<C.length){b=o;var p=C[o];p&&(d=p._fireEvent(i,a,u)),p&&d===!1||(d=v._fireEvent(i,a,u,p))}return n(x[i],function(){return d=this.call(S,o,a),this.cached&&x[i].splice(l,1),d===!1?!1:void l++}),d}var g=o.name||o,h=k[g];if(h)return h._fireEvent("onUpdate",o),h._fireEvent(a,t.slice(3))}},"string"==typeof o){var T=r(o);if(!T)throw"Flowplayer cannot access element: "+o;o=T,g()}else g()}function f(e){this.length=e.length,this.each=function(t){n(e,t)},this.size=function(){return e.length}}var c=function(e,t,r){var o=this,a={},s={};if(o.index=t,"string"==typeof e&&(e={url:e}),i(this,e,!0),n("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var e="on"+this;if(-1!=e.indexOf("*")){e=e.slice(0,e.length-1);var n="onBefore"+e.slice(2);o[n]=function(e){return u(s,n,e),o}}o[e]=function(t){return u(s,e,t),o},-1==t&&(o[n]&&(r[n]=o[n]),o[e]&&(r[e]=o[e]))}),i(this,{onCuepoint:function(e,n){if(1==arguments.length)return a.embedded=[null,e],o;"number"==typeof e&&(e=[e]);var i=l();return a[i]=[e,n],r.isLoaded()&&r._api().fp_addCuepoints(e,t,i),o},update:function(e){i(o,e),r.isLoaded()&&r._api().fp_updateClip(e,t);var n=r.getConfig(),a=-1==t?n.clip:n.playlist[t];i(a,e,!0)},_fireEvent:function(e,u,l,f){if("onLoad"==e)return n(a,function(e,n){n[0]&&r._api().fp_addCuepoints(n[0],t,e)}),!1;if(f=f||o,"onCuepoint"==e){var c=a[u];if(c)return c[1].call(r,f,l)}u&&-1!="onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(e)&&(i(f,u),u.metaData&&(f.duration?f.fullDuration=u.metaData.duration:f.duration=u.metaData.duration));var d=!0;return n(s[e],function(){d=this.call(r,f,u,l)}),d}}),e.onCuepoint){var f=e.onCuepoint;o.onCuepoint.apply(o,"function"==typeof f?[f]:f),delete e.onCuepoint}n(e,function(t,n){"function"==typeof n&&(u(s,t,n),delete e[t])}),-1==t&&(r.onCuepoint=this.onCuepoint)},d=function(e,t,r,o){var a=this,u={},s=!1;o&&i(u,o),n(t,function(e,n){"function"==typeof n&&(u[e]=n,delete t[e])}),i(this,{animate:function(n,i,o){if(!n)return a;if("function"==typeof i&&(o=i,i=500),"string"==typeof n){var s=n;n={},n[s]=i,i=500}if(o){var f=l();u[f]=o}return void 0===i&&(i=500),t=r._api().fp_animate(e,n,i,f),a},css:function(n,o){if(void 0!==o){var u={};u[n]=o,n=u}return t=r._api().fp_css(e,n),i(a,t),a},show:function(){return this.display="block",r._api().fp_showPlugin(e),a},hide:function(){return this.display="none",r._api().fp_hidePlugin(e),a},toggle:function(){return this.display=r._api().fp_togglePlugin(e),a},fadeTo:function(t,n,i){if("function"==typeof n&&(i=n,n=500),i){var o=l();u[o]=i}return this.display=r._api().fp_fadeTo(e,t,n,o),this.opacity=t,a},fadeIn:function(e,t){return a.fadeTo(1,e,t)},fadeOut:function(e,t){return a.fadeTo(0,e,t)},getName:function(){return e},getPlayer:function(){return r},_fireEvent:function(t,o){if("onUpdate"==t){var l=r._api().fp_getPlugin(e);if(!l)return;i(a,l),delete a.methods,s||(n(l.methods,function(){var t=""+this;a[t]=function(){var n=[].slice.call(arguments),i=r._api().fp_invoke(e,t,n);return"undefined"===i||void 0===i?a:i}}),s=!0)}var f=u[t];if(f){var c=f.apply(a,o);return"_"==t.slice(0,1)&&delete u[t],c}return a}})},p=[];window.flowplayer=window.$f=function(){var e=null,a=arguments[0];if(!arguments.length)return n(p,function(){return this.isLoaded()?(e=this,!1):void 0}),e||p[0];if(1==arguments.length)return"number"==typeof a?p[a]:"*"==a?new f(p):(n(p,function(){return this.id()==a.id||this.id()==a||this.getParent()==a?(e=this,!1):void 0}),e);if(arguments.length>1){var u=arguments[1],l=3==arguments.length?arguments[2]:{};if("string"==typeof u&&(u={src:u}),u=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:!1},u),"string"==typeof a){if(-1!=a.indexOf(".")){var c=[];return n(o(a),function(){c.push(new s(this,t(u),t(l)))}),new f(c)}var d=r(a);return new s(null!==d?d:a,u,l)}if(a)return new s(a,u,l)}return null},i(window.$f,{fireEvent:function(){var e=[].slice.call(arguments),t=$f(e[0]);return t?t._fireEvent(e.slice(1)):null},addPlugin:function(e,t){return s.prototype[e]=t,$f},each:n,extend:i}),"function"==typeof jQuery&&(jQuery.fn.flowplayer=function(e,n){if(!arguments.length||"number"==typeof arguments[0]){var r=[];return this.each(function(){var e=$f(this);e&&r.push(e)}),arguments.length?r[arguments[0]]:new f(r)}return this.each(function(){$f(this,t(e),n?t(n):{})})})}(),function(){function e(){if(s.done)return!1;var e=document;if(e&&e.getElementsByTagName&&e.getElementById&&e.body){clearInterval(s.timer),s.timer=null;for(var t=0;t<s.ready.length;t++)s.ready[t].call();s.ready=null,s.done=!0}}function t(e,t){if(t)for(key in t)t.hasOwnProperty(key)&&(e[key]=t[key]);return e}function n(e){switch(r(e)){case"string":return e=e.replace(new RegExp('(["\\\\])',"g"),"\\$1"),e=e.replace(/^\s?(\d+)%/,"$1pct"),'"'+e+'"';case"array":return"["+i(e,function(e){return n(e)}).join(",")+"]";case"function":return'"function()"';case"object":var t=[];for(var o in e)e.hasOwnProperty(o)&&t.push('"'+o+'":'+n(e[o]));return"{"+t.join(",")+"}"}return String(e).replace(/\s/g," ").replace(/\'/g,'"')}function r(e){if(null===e||void 0===e)return!1;var t=typeof e;return"object"==t&&e.push?"array":t}function i(e,t){var n=[];for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function o(e,r){var i=t({},e),o=document.all,a='<object width="'+i.width+'" height="'+i.height+'"';o&&!i.id&&(i.id="_"+(""+Math.random()).substring(9)),i.id&&(a+=' id="'+i.id+'"'),i.cachebusting&&(i.src+=(-1!=i.src.indexOf("?")?"&":"?")+Math.random()),a+=i.w3c||!o?' data="'+i.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"',a+=">",(i.w3c||o)&&(a+='<param name="movie" value="'+i.src+'" />'),i.width=i.height=i.id=i.w3c=i.src=null;for(var u in i)null!==i[u]&&(a+='<param name="'+u+'" value="'+i[u]+'" />');var l="";if(r){for(var s in r)null!==r[s]&&(l+=s+"="+("object"==typeof r[s]?n(r[s]):r[s])+"&");l=l.substring(0,l.length-1),a+='<param name="flashvars" value=\''+l+"' />"}return a+="</object>"}function a(e,n,r){var i=flashembed.getVersion();t(this,{getContainer:function(){return e},getConf:function(){return n},getVersion:function(){return i},getFlashvars:function(){return r},getApi:function(){return e.firstChild},getHTML:function(){return o(n,r)}});var a=n.version,u=n.expressInstall,l=!a||flashembed.isSupported(a);if(l?(n.onFail=n.version=n.expressInstall=null,e.innerHTML=o(n,r)):a&&u&&flashembed.isSupported([6,65])?(t(n,{src:u}),r={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title},e.innerHTML=o(n,r)):""!==e.innerHTML.replace(/\s/g,"")||(e.innerHTML="<h2>Flash version "+a+" or greater is required</h2><h3>"+(i[0]>0?"Your version is "+i:"You have no flash plugin installed")+"</h3>"+("A"==e.tagName?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>"),"A"==e.tagName&&(e.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"})),!l&&n.onFail){var s=n.onFail.call(this);"string"==typeof s&&(e.innerHTML=s)}document.all&&(window[n.id]=document.getElementById(n.id))}var u="function"==typeof jQuery,l={width:"100%",height:"100%",allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};u&&(jQuery.tools=jQuery.tools||{},jQuery.tools.flashembed={version:"1.0.4",conf:l});var s=u?jQuery:function(t){return s.done?t():void(s.timer?s.ready.push(t):(s.ready=[t],s.timer=setInterval(e,13)))};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){},__flash_savedUnloadHandler=function(){}}),window.flashembed=function(e,n,r){if("string"==typeof e){var i=document.getElementById(e);if(!i)return void s(function(){flashembed(e,n,r)});e=i}if(e){"string"==typeof n&&(n={src:n});var o=t({},l);return t(o,n),new a(e,o,r)}},t(window.flashembed,{getVersion:function(){var e=[0,0];if(navigator.plugins&&"object"==typeof navigator.plugins["Shockwave Flash"]){var t=navigator.plugins["Shockwave Flash"].description;if("undefined"!=typeof t){t=t.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(t.replace(/^(.*)\..*$/,"$1"),10),r=/r/.test(t)?parseInt(t.replace(/^.*r(.*)$/,"$1"),10):0;e=[n,r]}}else if(window.ActiveXObject){try{var i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(o){try{i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),e=[6,0],i.AllowScriptAccess="always"}catch(a){if(6==e[0])return e}try{i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(u){}}"object"==typeof i&&(t=i.GetVariable("$version"),"undefined"!=typeof t&&(t=t.replace(/^\S+\s+(.*)$/,"$1").split(","),e=[parseInt(t[0],10),parseInt(t[2],10)]))}return e},isSupported:function(e){var t=flashembed.getVersion(),n=t[0]>e[0]||t[0]==e[0]&&t[1]>=e[1];return n},domReady:s,asString:n,getHTML:o}),u&&(jQuery.fn.flashembed=function(e,t){var n=null;return this.each(function(){n=flashembed(this,e,t)}),e.api===!1?this:n})}(),function(){function e(){if(!u&&(u=!0,l)){for(var e=0;e<l.length;e++)l[e].call(window,[]);l=[]}}function t(e){var t=window.onload;window.onload="function"!=typeof window.onload?e:function(){t&&t(),e()}}function n(){if(!a){if(a=!0,document.addEventListener&&!o.opera&&document.addEventListener("DOMContentLoaded",e,!1),o.msie&&window==top&&function(){if(!u){try{document.documentElement.doScroll("left")}catch(t){return void setTimeout(arguments.callee,0)}e()}}(),o.opera&&document.addEventListener("DOMContentLoaded",function(){if(!u){for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].disabled)return void setTimeout(arguments.callee,0);e()}},!1),o.safari){var n;!function(){if(!u){if("loaded"!=document.readyState&&"complete"!=document.readyState)return void setTimeout(arguments.callee,0);if(void 0===n){for(var t=document.getElementsByTagName("link"),r=0;r<t.length;r++)"stylesheet"==t[r].getAttribute("rel")&&n++;var i=document.getElementsByTagName("style");n+=i.length}return document.styleSheets.length!=n?void setTimeout(arguments.callee,0):void e()}}()}t(e)}}var r=window.DomReady={},i=navigator.userAgent.toLowerCase(),o={version:(i.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(i),opera:/opera/.test(i),msie:/msie/.test(i)&&!/opera/.test(i),mozilla:/mozilla/.test(i)&&!/(compatible|webkit)/.test(i)},a=!1,u=!1,l=[];r.ready=function(e){n(),u?e.call(window,[]):l.push(function(){return e.call(window,[])})},n()}(),function(e,t){"use strict";function n(e,t){return e.canPlayType(t)||g&&t.search("mp4")>-1}function r(e){for(var r=t.getElementsByTagName(e),o=[],u=0;u<r.length;u++)o.push(r[u]);for(u=0;u<o.length;u++){var l=o[u],s=!0;if(l.canPlayType)if(l.src)n(l,a(e,l.src))&&(s=!1);else for(var f=l.getElementsByTagName("source"),c=0;c<f.length;c++){var d=f[c];if(n(l,a(e,d.src,d.type))){s=!1;break}}s||i.forceFallback(e,l)?i.createFallback(e,l):g&&l.addEventListener("click",function(){this.play()},!1)}}function i(){r("video"),r("audio")}function o(e){return e.split("/").slice(0,-1).join("/")+"/"}function a(e,t,n){if(n)return n;var r=/\.([a-z1-9]+)(\?|#|\s|$)/i.exec(t);if(r){var i=C[e][r[1]];if(i)return i}return L[e]}function u(e,t){var n=e.getAttribute(t);return!!n||"string"==typeof n}function l(e){var n=t.createElement("a");return n.href=e,n.href}function s(n,r,i){var o=n.getAttribute(r);if(o)return o+"px";var a;if(n.currentStyle)a=n.currentStyle[r];else{if(!e.getComputedStyle)return i;a=t.defaultView.getComputedStyle(n,null).getPropertyValue(r)}return"auto"==a?i:a}function f(e){return e.match(/\s*([\w-]+\/[\w-]+)(;|\s|$)/)[1]}function c(e,t){return f(e)==f(t)}var d="video",p="audio";t.createElement(d).canPlayType||(t.createElement(p),t.createElement("source"));var g=null!==e.navigator.userAgent.toLowerCase().match(/android 2\.[12]/),h=null!==e.navigator.userAgent.toLowerCase().match(/opera/);i.forceFallback=function(){return!1};var v=function(){for(var e=t.getElementsByTagName("script"),n=0;n<e.length;n++){var r=e[n];if(r.src.match(/html5media(\.min|)\.js/))return o(r.src)}return""}();i.flowplayerSwf=v+"flowplayer.swf",i.flowplayerAudioSwf=v+"flowplayer.audio.swf",i.flowplayerControlsSwf=v+"flowplayer.controls.swf",i.expressInstallSwf=v+"expressInstall.swf";var y='video/ogg; codecs="theora, vorbis"',m='video/mp4; codecs="avc1.42E01E, mp4a.40.2"',w='audio/ogg; codecs="vorbis"',b="video/webm;",_="audio/x-m4a;",E="audio/mpeg;",S='audio/wav; codecs="1"',L={video:m,audio:E},P=[m,_,E],C={video:{ogg:y,ogv:y,avi:m,mp4:m,mkv:m,h264:m,264:m,avc:m,m4v:m,"3gp":m,"3gpp":m,"3g2":m,mpg:m,mpeg:m,webm:b},audio:{ogg:w,oga:w,aac:_,m4a:_,mp3:E,wav:S}};i.configureFlowplayer=function(e,t){return t},i.createFallback=function(e,n){var r=u(n,"controls"),o=n.getAttribute("poster")||"",f=n.getAttribute("src")||"";if(!f)for(var p=n.getElementsByTagName("source"),g=0;g<p.length;g++){var v=p[g],y=v.getAttribute("src");if(y)for(var m=0;m<P.length;m++){var w=P[m];if(c(w,a(e,y,v.getAttribute("type")))){f=y;break}}if(f)break}if(f){var b=t.createElement("span");b.id=n.id,b.style.cssText=n.style.cssText,b.className=n.className,b.title=n.title,b.style.display="block",b.style.width=s(n,"width","300px"),b.style.height="audio"==e?"26px":s(n,"height","200px"),n.parentNode.replaceChild(b,n);var _=(n.getAttribute("preload")||"").toLowerCase(),E=[];o&&E.push({url:l(o)}),f&&E.push({url:l(f),autoPlay:u(n,"autoplay"),autoBuffering:u(n,"autobuffer")||u(n,"preload")&&(""===_||"auto"==_),onBeforeFinish:function(){return!u(n,"loop")}});var S={controls:r&&{url:l(i.flowplayerControlsSwf),opacity:.8,backgroundColor:"#181818",backgroundGradient:"none",fullscreen:e==d,autoHide:e==d&&{fullscreenOnly:!1,enabled:!0,hideStyle:"fade",mouseOutDelay:0}||{enabled:!1}}||null};h&&S.controls&&(S.controls.autoHide.enabled=!1),"audio"==e&&(S.audio={url:l(i.flowplayerAudioSwf)},r||(S.controls={url:l(i.flowplayerControlsSwf),display:"none"},b.style.height=0),E[E.length-1].autoBuffering=!1);var L={play:null,playlist:E,clip:{scaling:"fit",fadeInSpeed:0,fadeOutSpeed:0},canvas:{backgroundGradient:"none",backgroundColor:"#000000"},plugins:S};L=i.configureFlowplayer(n,L),flowplayer(b,{src:l(i.flowplayerSwf),expressInstall:l(i.expressInstallSwf),wmode:"opaque"},L)}},DomReady.ready(i),e.html5media=i}(this,document);
Note: See TracChangeset for help on using the changeset viewer.