// HTML5AudioVideoFallback 1.1 by Katja Deutschmann (function(d){var f={idPrefix:"HTML5AudioVideoFallback_",generateId:true,flashPlayerSrc:"lib/flowplayer/flowplayer-3.2.7.swf",flashExpressInstallSrc:"lib/expressinstall.swf",flashVersion:"9",initFunction:null,width:600,height:400,flashMediumSrcType:"video/mp4",flashvars:"",params:"{\"flashvars\": \"config={'clip': {'url': '###MEDIUM_SRC###', 'autoPlay': 0}, 'canvas': {'backgroundColor': '#000000', 'backgroundImage': '###VIDEO_POSTER_SRC###'}}\"}",attributes:"",playerDirectEmbedCall:null,alternateMessageHTML:'Unable to play medium. Please use download links provided:###ALTERNATE_MESSAGE_LINKS###',alternateMessageLink:'###MEDIUM_SRC_FILENAME### (###MEDIUM_MIMETYPE###)',alwaysUseFlash:false};var r={init:function(y){return this.each(function(){n(d(this),y)})},remove:function(){return this.each(function(){w(d(this))})}};var i="video";var p="audio";var x="video/ogg";var t="video/mp4";var k="video/webm";var s="audio/ogg";var a="video/x-flv";var u="audio/x-m4a";var m="audio/mpeg";var e="audio/wav";var b="audio/webm";var j={video:{ogg:x,ogv:x,avi:t,mp4:t,mkv:t,h264:t,"264":t,avc:t,m4v:t,"3gp":t,"3gpp":t,"3g2":t,mpg:t,mpeg:t,flv:a,webm:k},audio:{ogg:s,oga:s,aac:u,m4a:u,mp3:m,wav:e,webm:b}};var q=false;if(navigator.plugins&&navigator.plugins.length>0){var c="application/x-shockwave-flash";var v=navigator.mimeTypes;if(v&&v[c]&&v[c].enabledPlugin&&v[c].enabledPlugin.description){q=true}}else{if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");q=true}catch(l){q=false}}}function n(z,N){z.data("HTML5AudioVideoFallback",d.extend({},f,N||{}));var D=z.data("HTML5AudioVideoFallback");D.isFlashSupported=q;D.medium=z;var I=D.medium.get(0);var y=I.nodeName.toLowerCase();if(y==p||y==i){D.mediumSources=D.medium.children("source");if(D.mediumSources.length==0){D.mediumSources=[D.medium]}D.flashMediumSrc=null;var G=false;var H=true;for(var E=0;E",{id:D.flashId});D.medium.hide();D.medium.before(D.fallbackContainer);if(D.initFunction!=null&&D.initFunction!=""&&typeof D.initFunction=="function"){D.initFunction.call()}if(D.playerDirectEmbedCall==null||D.playerDirectEmbedCall==""){var A=d.parseJSON(D.flashvars.replace(/###FLASH_ID###/g,D.flashId).replace(/###MEDIUM_SRC###/g,D.flashMediumSrc).replace(/###VIDEO_POSTER_SRC###/g,D.posterSrc));var B=d.parseJSON(D.params.replace(/###FLASH_ID###/g,D.flashId).replace(/###MEDIUM_SRC###/g,D.flashMediumSrc).replace(/###VIDEO_POSTER_SRC###/g,D.posterSrc));var C=d.parseJSON(D.attributes.replace(/###FLASH_ID###/g,D.flashId).replace(/###MEDIUM_SRC###/g,D.flashMediumSrc).replace(/###VIDEO_POSTER_SRC###/g,D.posterSrc));function M(O){if(!O.success){h(z)}else{D.flashMedium=jQuery(O.ref)}}swfobject.embedSWF(D.flashPlayerSrc,D.flashId,D.width,D.height,D.flashVersion,D.flashExpressInstallSrc,A,B,C,M)}else{var K=D.playerDirectEmbedCall.replace(/###FLASH_ID###/g,D.flashId).replace(/###MEDIUM_SRC###/g,D.flashMediumSrc).replace(/###VIDEO_POSTER_SRC###/g,D.posterSrc).replace(/###WIDTH###/g,D.width).replace(/###HEIGHT###/g,D.height).replace(/###FLASH_PLAYER_SRC###/g,D.flashPlayerSrc).replace(/###FLASH_EXPRESS_INSTALL_SRC###/g,D.flashExpressInstallSrc).replace(/###FLASH_VERSION###/g,D.flashVersion);try{D.flashMedium=new Function(K).call()}catch(J){alert("HTML5AudioVideoFallback (playerDirectEmbedCall): \n"+J)}}}else{if((!G&&D.flashMediumSrc==null)||(!G&&!q)){h(z)}}}else{D.fallbackContainer=null;D.flashMedium=null}}function h(y){var A=g(y);var z="";d.each(A.mediumSources,function(E,F){var G=d(F).attr("src");var C=d(F).attr("type");if(typeof G!="undefined"){var D=A.alternateMessageLink.replace(/###MEDIUM_SRC###/g,G).replace(/###MEDIUM_SRC_FILENAME###/g,G.substring(G.lastIndexOf("/")+1));if(typeof C!="undefined"){D=D.replace(/###MEDIUM_MIMETYPE###/g,C)}else{D=D.replace(/###MEDIUM_MIMETYPE###/g,"")}z+=D}});var B=A.alternateMessageHTML.replace(/###ALTERNATE_MESSAGE_LINKS###/g,z).replace(/###VIDEO_POSTER_SRC###/g,A.posterSrc);if(typeof A.fallbackContainer!="undefined"){A.fallbackContainer.html(B)}else{A.medium.hide();A.fallbackContainer=d(B);A.medium.before(A.fallbackContainer)}}function o(z){if(typeof z!="undefined"&&z!=null){if(z.charAt(0)=="/"){return document.location.protocol+"//"+document.location.host+z}else{if(z.indexOf("://")>0&&z.indexOf("://")<10){return z}else{if(d("base[href]").length>0){var y=d("base[href]").attr("href");if(y.charAt(y.length-1)!="/"){y+="/"}return y+z}else{return document.location.href.substring(0,document.location.href.lastIndexOf("/")+1)+z}}}}else{return null}}function w(y){var z=g(y);if(typeof z.fallbackContainer!="undefined"&&z.fallbackContainer!=null){z.fallbackContainer.remove()}d("#"+z.flashId).remove()}function g(y){var z=y.data("HTML5AudioVideoFallback");if(!z){n(y);z=y.data("HTML5AudioVideoFallback")}return z}d.fn.HTML5AudioVideoFallback=function(y){if(r[y]){return r[y].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof y==="object"||!y){return r.init.apply(this,arguments)}else{d.error("Method "+y+" does not exist on jQuery.HTML5AudioVideoFallback")}}}})(jQuery);
Unable to play medium. Please use download links provided: