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

