/* * flowplayer.js 3.2.8. the flowplayer api * * copyright 2009-2011 flowplayer oy * * this file is part of flowplayer. * * flowplayer is free software: you can redistribute it and/or modify * it under the terms of the gnu general public license as published by * the free software foundation, either version 3 of the license, or * (at your option) any later version. * * flowplayer is distributed in the hope that it will be useful, * but without any warranty; without even the implied warranty of * merchantability or fitness for a particular purpose. see the * gnu general public license for more details. * * you should have received a copy of the gnu general public license * along with flowplayer. if not, see . * * date: 2011-12-30 12:34:08 -0500 (fri, 30 dec 2011) * revision: 761 */ (function(){function g(o){console.log("$f.fireevent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasownproperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[9,0],expressinstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:false},t);if(typeof o=="string"){if(o.indexof(".")!=-1){var s=[];m(n(o),function(){s.push(new b(this,k(t),k(q)))});return new d(s)}else{var r=c(o);return new b(r!==null?r:k(o),k(t),k(q))}}else{if(o){return new b(o,k(t),k(q))}}}return null};i(window.$f,{fireevent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireevent(o.slice(1)):null},addplugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jquery=="function"){jquery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var h=document.all,j="http://www.adobe.com/go/getflashplayer",c=typeof jquery=="function",e=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={width:"100%",height:"100%",id:"_"+(""+math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onfail:null,expressinstall:null,w3c:false,cachebusting:false};if(window.attachevent){window.attachevent("onbeforeunload",function(){__flash_unloadhandler=function(){};__flash_savedunloadhandler=function(){}})}function i(m,l){if(l){for(var f in l){if(l.hasownproperty(f)){m[f]=l[f]}}}return m}function a(f,n){var m=[];for(var l in f){if(f.hasownproperty(l)){m[l]=n(f[l])}}return m}window.flashembed=function(f,m,l){if(typeof f=="string"){f=document.getelementbyid(f.replace("#",""))}if(!f){return}if(typeof m=="string"){m={src:m}}return new d(f,i(i({},b),m),l)};var g=i(window.flashembed,{conf:b,getversion:function(){var m,f;try{f=navigator.plugins["shockwave flash"].description.slice(16)}catch(o){try{m=new activexobject("shockwaveflash.shockwaveflash.7");f=m&&m.getvariable("$version")}catch(n){try{m=new activexobject("shockwaveflash.shockwaveflash.6");f=m&&m.getvariable("$version")}catch(l){}}}f=e.exec(f);return f?[f[1],f[3]]:[0,0]},asstring:function(l){if(l===null||l===undefined){return null}var f=typeof l;if(f=="object"&&l.push){f="array"}switch(f){case"string":l=l.replace(new regexp('(["\\\\])',"g"),"\\$1");l=l.replace(/^\s?(\d+\.?\d*)%/,"$1pct");l=l.replace(/(%)/g,"%25").replace(/'/g,"\\u0027").replace(/"/g,"\\u0022").replace(/&/g,"%26");return'"'+l+'"';case"array":return"["+a(l,function(o){return g.asstring(o)}).join(",")+"]";case"function":return'"function()"';case"object":var m=[];for(var n in l){if(l.hasownproperty(n)){m.push('"'+n+'":'+g.asstring(l[n]))}}return"{"+m.join(",")+"}"}return string(l).replace(/\s/g," ").replace(/\'/g,'"')},gethtml:function(o,l){o=i({},o);var n=''}o.width=o.height=o.id=o.w3c=o.src=null;o.onfail=o.version=o.expressinstall=null;for(var m in o){if(o[m]){n+=''}}var p="";if(l){for(var f in l){if(l[f]){var q=l[f];p+=f+"="+(/function|object/.test(typeof q)?g.asstring(q):q)+"&"}}p=p.slice(0,-1);n+='"}n+="";return n},issupported:function(f){return k[0]>f[0]||k[0]==f[0]&&k[1]>=f[1]}});var k=g.getversion();function d(f,n,m){if(g.issupported(n.version)){f.innerhtml=g.gethtml(n,m)}else{if(n.expressinstall&&g.issupported([6,65])){f.innerhtml=g.gethtml(i(n,{src:n.expressinstall}),{mmredirecturl:encodeuricomponent(location.href),mmplayertype:"plugin",mmdoctitle:document.title})}else{if(!f.innerhtml.replace(/\s/g,"")){f.innerhtml="

flash version "+n.version+" or greater is required

"+(k[0]>0?"your version is "+k:"you have no flash plugin installed")+"

"+(f.tagname=="a"?"

click here to download latest version

":"

download latest version from here

");if(f.tagname=="a"){f.onclick=function(){location.href=j}}}if(n.onfail){var l=n.onfail.call(this);if(typeof l=="string"){f.innerhtml=l}}}}if(h){window[n.id]=document.getelementbyid(n.id)}i(this,{getroot:function(){return f},getoptions:function(){return n},getconf:function(){return m},getapi:function(){return f.firstchild}})}if(c){jquery.tools=jquery.tools||{version:"3.2.8"};jquery.tools.flashembed={conf:b};jquery.fn.flashembed=function(l,f){return this.each(function(){$(this).data("flashembed",flashembed(this,l,f))})}}})();