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