function flashembed(V,W,X){if(typeof V=="string"){V=document.getElementById(V)}var Y={src:"#",width:"100%",height:"100%",version:null,loadEvent:null,onFail:null,expressInstall:null,allowfullscreen:true,allowscriptaccess:"always",quality:"high",bgcolor:"#ffffff",type:"application/x-shockwave-flash",pluginspage:"http://www.adobe.com/go/getflashplayer"};U(Y,W);var Z=Y.loadEvent;Y.loadEvent=null;if(Z){if(!V){return }V["on"+Z]=function(){return R()}}else{return R()}function U(A,B){if(B){for(key in B){A[key]=B[key]}}}function R(){var C=N();var D=Y.version;var A=Y.expressInstall;if(!V){return }if(!D||O(D)){Y.onFail=Y.version=Y.expressInstall=null;V.innerHTML=Q();return V.firstChild}else{if(Y.onFail){var B=Y.onFail.call(Y,N(),X);if(B){V.innerHTML=B}}else{if(D&&A&&O([6,65])){U(Y,{src:A});X={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};V.innerHTML=Q()}else{if(V.innerHTML.replace(/\s/g,"")!=""){}else{V.innerHTML="<h2>Flash version "+D+" or greater is required</h2><h3>"+(C[0]>0?"Your version is "+C:"You have no flash plugin installed")+"</h3><p>Download latest version from <a href='"+Y.pluginspage+"'>here</a></p>"}}}}V["on"+Z]=null}function O(B){var C=N();var A=(C[0]>B[0])||(C[0]==B[0]&&C[1]>=B[1]);return A}function Q(){var A="";if(typeof X=="function"){X=X()}if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){A='<embed type="application/x-shockwave-flash" ';U(Y,{name:Y.id});for(var B in Y){if(Y[B]!=null){A+=[B]+'="'+Y[B]+'"\n\t'}}if(X){A+="flashvars='";for(var B in X){A+=[B]+"="+T(X[B])+"&"}A+="'"}A+="/>"}else{A='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';A+='width="'+Y.width+'" height="'+Y.height+'"';if(document.all&&parseInt(navigator.appVersion)<=6){Y.id="_"+(""+Math.random()).substring(5)}if(Y.id){A+=' id="'+Y.id+'"'}A+=">";A+='\n\t<param name="movie" value="'+Y.src+'" />';Y.id=Y.src=Y.width=Y.height=null;for(var B in Y){if(Y[B]!=null){A+='\n\t<param name="'+B+'" value="'+Y[B]+'" />'}}if(X){A+='\n\t<param name="flashvars" value=\'';for(var B in X){A+=[B]+"="+T(X[B])+"&"}A+="' />"}A+="</object>"}return A}function N(){var E=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var F=navigator.plugins["Shockwave Flash"].description;if(typeof F!="undefined"){F=F.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var A=parseInt(F.replace(/^(.*)\..*$/,"$1"),10);var B=/r/.test(F)?parseInt(F.replace(/^.*r(.*)$/,"$1"),10):0;E=[A,B]}}else{if(window.ActiveXObject){try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(C){try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=[6,0];D.AllowScriptAccess="always"}catch(C){if(E[0]==6){return }}try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(C){}}if(typeof D=="object"){var F=D.GetVariable("$version");if(typeof F!="undefined"){F=F.replace(/^\S+\s+(.*)$/,"$1").split(",");E=[parseInt(F[0],10),parseInt(F[2],10)]}}}}return E}function T(C){switch(S(C)){case"string":return'"'+C.replace(new RegExp('(["\\\\])',"g"),"\\$1")+'"';case"array":return"["+P(C,function(D){return T(D)}).join(",")+"]";case"object":var A=[];for(var B in C){A.push('"'+B+'":'+T(C[B]))}return"{"+A.join(",")+"}"}return String(C).replace(/\s/g," ").replace(/\'/g,'"')}function S(A){if(A===null||A===undefined){return false}var B=typeof A;return(B=="object"&&A.push)?"array":B}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function P(C,D){var A=[];for(var B in C){A[B]=D(C[B])}return A}flashembed.getVersion=N;flashembed.isSupported=O;return V}if(typeof jQuery=="function"){(function(B){B.fn.extend({flashembed:function(A,D){return this.each(function(){new flashembed(this,A,D)})}})})(jQuery)};