function RunActivationPatch()
{
   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="500" height="400" align="middle">\n');
   document.write('<param name="wmode" value="transparent" />\n');
   document.write('<param name="movie" value="include/butterfly/butterfly.swf" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<embed src="include/butterfly/butterfly.swf" quality="high" wmode="transparent" width="500" height="400" name="Butterfly" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
   document.write('</object>\n');
}

function flash_detection()
{
var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
if (navigator.plugins && navigator.plugins.length)
{
	x = navigator.plugins["Shockwave Flash"];
	if (x)
	{
		flashinstalled = 2;
		RunActivationPatch();
		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;
		RunActivationPatch();
	}
}

else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
	{
		flashinstalled = 2;
		RunActivationPatch();
	}
	else
		flashinstalled = 1;
}

else
	MSDetect = "true";

// -->
}