// Flash Embedding without the box
function FlashEmbed(fileName, width, height)
{
document.write('<object style="z-index:3;  position:relative; top:0px; left:0px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=7,0,0,0" width="' + width + '"  height="' + height + '" id="header" align="middle">\n');
document.write('<param name="allowScriptAccess" value="sameDomain">\n');
document.write('<param name="movie" value="' + fileName + '">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#000000">\n');
document.write('</object>');
};

function NetscapeEmbed(fileName, width, height)
{
	document.write('<object style="z-index:3;  position:relative; top:0px; left:0px;" width="'+width+'" height="'+height+'">\n');
	document.write('<param name="movie" value="' + fileName + '">\n');
	document.write('<embed bgcolor="#000000" src="' + fileName + '" width="'+width+'" height="'+height+'">\n');
	document.write('</embed>\n');
	document.write('</object>'); 
};

function IsFlashInstalled()
{
	var flashinstalled = 0;
	var flashversion = 0;
	MSDetect = "false";
	
	if ( navigator.appName == "Microsoft Internet Explorer")
		return true;

	if (navigator.plugins && navigator.plugins.length)
	{
		x = navigator.plugins["Shockwave Flash"];
		if (x)
		{
			flashinstalled = 2;
			if (x.description)
			{
				y = x.description;
				flashversion = y.charAt(y.indexOf('.')-1);
			}
		}
		else
			flashinstalled = 1;
		if (navigator.plugins["Shockwave Flash 2.0"])
		{
			flashinstalled = 2;
			flashversion = 2;
		}
	}
	else if (navigator.mimeTypes && navigator.mimeTypes.length)
	{
		x = navigator.mimeTypes['application/x-shockwave-flash'];
		if (x && x.enabledPlugin)
			flashinstalled = 2;
		else
			flashinstalled = 1;
	}
	else
		MSDetect = "true";
	
	if ( flashinstalled == 2 )
		return true;
	else
		return false;
}
