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