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

