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