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