/*
* flowplayer.js 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 1){var u=arguments[1],r=(arguments.length==3)?arguments[2]:{};if(typeof u=="string"){u={src:u}}u=j({bgcolor:"#000000",version:[10,1],expressinstall:"http://releases.flowplayer.org/swf/expressinstall.swf",cachebusting:false},u);if(typeof p=="string"){if(p.indexof(".")!=-1){var t=[];n(o(p),function(){t.push(new b(this,l(u),l(r)))});return new d(t)}else{var s=c(p);return new b(s!==null?s:l(p),l(u),l(r))}}else{if(p){return new b(p,l(u),l(r))}}}return null};j(window.$f,{fireevent:function(){var q=[].slice.call(arguments);var r=$f(q[0]);return r?r._fireevent(q.slice(1)):null},addplugin:function(p,q){b.prototype[p]=q;return $f},each:n,extend:j});if(typeof jquery=="function"){jquery.fn.flowplayer=function(r,q){if(!arguments.length||typeof arguments[0]=="number"){var p=[];this.each(function(){var s=$f(this);if(s){p.push(s)}});return arguments.length?p[arguments[0]]:new d(p)}return this.each(function(){$f(this,l(r),q?l(q):{})})}}}();!function(){var h=document.all,j="http://get.adobe.com/flashplayer",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,o;try{o=navigator.plugins["shockwave flash"];if(o[0].enabledplugin!=null){f=o.description.slice(16)}}catch(p){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?[1*f[1],1*f[(f[1]*1>9?2:3)]*1]:[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");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='";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.tagname=="div"){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:"@version"};jquery.tools.flashembed={conf:b};jquery.fn.flashembed=function(l,f){return this.each(function(){$(this).data("flashembed",flashembed(this,l,f))})}}}();