function flashembed(n,q,f){function a(){var t="";if(typeof f=="function"){f=f()}if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){t='<embed type="application/x-shockwave-flash" ';if(g.id){l(g,{name:g.id})}for(var s in g){if(g[s]!==null){t+=[s]+'="'+g[s]+'"\n\t'}}if(f){t+="flashvars='"+h(f)+"'"}t+="/>"}else{t='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';t+='width="'+g.width+'" height="'+g.height+'"';if(!g.id&&document.all){g.id="_"+(""+Math.random()).substring(5)}if(g.id){t+=' id="'+g.id+'"'}t+=">";t+='\n\t<param name="movie" value="'+g.src+'" />';g.id=g.src=g.width=g.height=null;for(var r in g){if(g[r]!==null){t+='\n\t<param name="'+r+'" value="'+g[r]+'" />'}}if(f){t+='\n\t<param name="flashvars" value=\''+h(f)+"' />"}t+="</object>";if(c){alert(t)}}return t}function p(r){var s=setInterval(function(){var u=document;var t=u.getElementById(r);if(t){flashembed(t,q,f);clearInterval(s)}else{if(u&&u.getElementsByTagName&&u.getElementById&&u.body){clearInterval(s)}}},13);return true}function l(s,r){if(r){for(key in r){if(r.hasOwnProperty(key)){s[key]=r[key]}}}}var g={src:"#",width:"100%",height:"100%",version:null,onFail:null,expressInstall:null,debug:false,bgcolor:"#ffffff",allowfullscreen:true,allowscriptaccess:"always",quality:"high",type:"application/x-shockwave-flash",pluginspage:"http://www.adobe.com/go/getflashplayer"};if(typeof q=="string"){q={src:q}}l(g,q);var j=flashembed.getVersion();var k=g.version;var d=g.expressInstall;var c=g.debug;if(typeof n=="string"){var e=document.getElementById(n);if(e){n=e}else{return p(n)}}if(!n){return}if(!k||flashembed.isSupported(k)){g.onFail=g.version=g.expressInstall=g.debug=null;n.innerHTML=a();return n.firstChild}else{if(g.onFail){var i=g.onFail.call(g,flashembed.getVersion(),f);if(i){n.innerHTML=i}}else{if(k&&d&&flashembed.isSupported([6,65])){l(g,{src:d});f={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};n.innerHTML=a()}else{if(n.innerHTML.replace(/\s/g,"")!==""){}else{n.innerHTML="<h2>Flash version "+k+" or greater is required</h2><h3>"+(j[0]>0?"Your version is "+j:"You have no flash plugin installed")+"</h3><p>Download latest version from <a href='"+g.pluginspage+"'>here</a></p>"}}}}function h(t){var r="";for(var s in t){if(t[s]){r+=[s]+"="+m(t[s])+"&"}}return r.substring(0,r.length-1)}function m(r){switch(o(r)){case"string":return'"'+r.replace(new RegExp('(["\\\\])',"g"),"\\$1")+'"';case"array":return"["+b(r,function(u){return m(u)}).join(",")+"]";case"function":return'"function()"';case"object":var s=[];for(var t in r){if(r.hasOwnProperty(t)){s.push('"'+t+'":'+m(r[t]))}}return"{"+s.join(",")+"}"}return String(r).replace(/\s/g," ").replace(/\'/g,'"')}function o(s){if(s===null||s===undefined){return false}var r=typeof s;return(r=="object"&&s.push)?"array":r}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(r,u){var t=[];for(var s in r){if(r.hasOwnProperty(s)){t[s]=u(r[s])}}return t}return n}if(typeof jQuery=="function"){(function(a){a.fn.extend({flashembed:function(c,b){return this.each(function(){flashembed(this,c,b)})}})})(jQuery)}flashembed=flashembed||{};flashembed.getVersion=function(){var c=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var b=navigator.plugins["Shockwave Flash"].description;if(typeof b!="undefined"){b=b.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var d=parseInt(b.replace(/^(.*)\..*$/,"$1"),10);var i=/r/.test(b)?parseInt(b.replace(/^.*r(.*)$/,"$1"),10):0;c=[d,i]}}else{if(window.ActiveXObject){try{var g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(h){try{g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=[6,0];g.AllowScriptAccess="always"}catch(a){if(c[0]==6){return}}try{g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}if(typeof g=="object"){b=g.GetVariable("$version");if(typeof b!="undefined"){b=b.replace(/^\S+\s+(.*)$/,"$1").split(",");c=[parseInt(b[0],10),parseInt(b[2],10)]}}}}return c};flashembed.isSupported=function(a){var c=flashembed.getVersion();var b=(c[0]>a[0])||(c[0]==a[0]&&c[1]>=a[1]);return b};