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