(function(){function n(){if(f.done)return false;var a=document;if(a&&a.getElementsByTagName&&a.getElementById&&a.body){clearInterval(f.timer);f.timer=null;for(a=0;a<f.ready.length;a++)f.ready[a].call();f.ready=null;f.done=true}}function h(a,b){if(b)for(key in b)if(b.hasOwnProperty(key))a[key]=b[key];return a}function i(a){switch(o(a)){case "string":a=a.replace(new RegExp('(["\\\\])',"g"),"\\$1");a=a.replace(/^\s?(\d+)%/,"$1pct");return'"'+a+'"';case "array":return"["+p(a,function(d){return i(d)}).join(",")+
"]";case "function":return'"function()"';case "object":var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push('"'+c+'":'+i(a[c]));return"{"+b.join(",")+"}"}return String(a).replace(/\s/g," ").replace(/\'/g,'"')}function o(a){if(a===null||a===undefined)return false;var b=typeof a;return b=="object"&&a.push?"array":b}function p(a,b){var c=[];for(var d in a)if(a.hasOwnProperty(d))c[d]=b(a[d]);return c}function j(a,b){var c=h({},a),d=document.all;a='<object width="'+c.width+'" height="'+c.height+'"';if(d&&
!c.id)c.id="_"+(""+Math.random()).substring(9);if(c.id)a+=' id="'+c.id+'"';if(c.cachebusting)c.src+=(c.src.indexOf("?")!=-1?"&":"?")+Math.random();a+=c.w3c||!d?' data="'+c.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';a+=">";if(c.w3c||d)a+='<param name="movie" value="'+c.src+'" />';c.width=c.height=c.id=c.w3c=c.src=null;for(var e in c)if(c[e]!==null)a+='<param name="'+e+'" value="'+c[e]+'" />';e="";if(b){for(var g in b)if(b[g]!==null)e+=g+"="+
(typeof b[g]=="object"?i(b[g]):b[g])+"&";e=e.substring(0,e.length-1);a+='<param name="flashvars" value=\''+e+"' />"}a+="</object>";return a}function q(a,b,c){var d=flashembed.getVersion();h(this,{getContainer:function(){return a},getConf:function(){return b},getVersion:function(){return d},getFlashvars:function(){return c},getApi:function(){return a.firstChild},getHTML:function(){return j(b,c)}});var e=b.version,g=b.expressInstall,l=!e||flashembed.isSupported(e);if(l){b.onFail=b.version=b.expressInstall=
null;a.innerHTML=j(b,c)}else if(e&&g&&flashembed.isSupported([6,65])){h(b,{src:g});c={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};a.innerHTML=j(b,c)}else if(a.innerHTML.replace(/\s/g,"")===""){a.innerHTML="<h2>Flash version "+e+" or greater is required</h2><h3>"+(d[0]>0?"Your version is "+d:"You have no flash plugin installed")+"</h3>"+(a.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");
if(a.tagName=="A")a.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}if(!l&&b.onFail){e=b.onFail.call(this);if(typeof e=="string")a.innerHTML=e}if(document.all)window[b.id]=document.getElementById(b.id)}var k=typeof jQuery=="function",m={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(k){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",
conf:m}}var f=k?jQuery:function(a){if(f.done)return a();if(f.timer)f.ready.push(a);else{f.ready=[a];f.timer=setInterval(n,13)}};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(a,b,c){if(typeof a=="string"){var d=document.getElementById(a);if(d)a=d;else{f(function(){flashembed(a,b,c)});return}}if(a){if(typeof b=="string")b={src:b};d=h({},m);h(d,b);return new q(a,d,c)}};h(window.flashembed,
{getVersion:function(){var a=[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");a=parseInt(b.replace(/^(.*)\..*$/,"$1"),10);b=/r/.test(b)?parseInt(b.replace(/^.*r(.*)$/,"$1"),10):0;a=[a,b]}}else if(window.ActiveXObject){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(c){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a=
[6,0];b.AllowScriptAccess="always"}catch(d){if(a[0]==6)return a}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(typeof b=="object"){b=b.GetVariable("$version");if(typeof b!="undefined"){b=b.replace(/^\S+\s+(.*)$/,"$1").split(",");a=[parseInt(b[0],10),parseInt(b[2],10)]}}}return a},isSupported:function(a){var b=flashembed.getVersion();return b[0]>a[0]||b[0]==a[0]&&b[1]>=a[1]},domReady:f,asString:i,getHTML:j});if(k)jQuery.fn.flashembed=function(a,b){var c=null;this.each(function(){c=
flashembed(this,a,b)});return a.api===false?this:c}})();
