var browserType = "";
function IE_Embed_Flash( file , width , height ) {
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="z-index: 1;"');
	document.write(' codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=6,0,0,0"');
	document.write(' WIDTH=' + width + ' HEIGHT=' + height + '>');
	document.write('  <PARAM NAME=movie VALUE="'+file+'"> ');
	document.write('  <PARAM NAME=quality VALUE=autohigh> ');
	document.write('  <param name="wmode" value="opaque" />');
	document.write('<EMBED SRC="'+file+'"');
	document.write(' swLiveConnect=TRUE WIDTH='+width+ ' HEIGHT='+height);
	document.write(' QUALITY=autohigh ');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}
function FF_Embed_Flash( file, width, height )
{
	document.write('<object width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" data="'+file+'" style="z-index: 1;">');
	document.write('	<param name="movie" value="'+file+'" />');
	document.write('	<param name="quality" value="high" />');
	document.write('	<param name="wmode" value="opaque" />');
	document.write('</object>');
}

function Embed_Flash( file, width, height )
{
	if (browserType == "")
	{
		var uA = navigator.userAgent;
		browserType = "unknown";
		if (uA.indexOf("Opera") > -1 ) { browserType = "Opera"; }
		else if (uA.indexOf("Safari") > -1 ) { browserType = "Safari"; }
		else if (uA.indexOf("Konqueror") > -1 ) { browserType = "Konqueror"; }
		else if (uA.indexOf("Gecko") > -1 ) { browserType = "Mozilla"; }
		else if (uA.indexOf("MSIE") > -1 ) { browserType = "Internet Explorer"; }
	}
	if (browserType == "Internet Explorer")
		IE_Embed_Flash(file, width, height );
	else
		FF_Embed_Flash(file, width, height );
}
