//INITIALIZE VARIABLES
var flashinstalled = 0;
var flashversion = 0;
MSDetect = false;

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 && 1 ==2 )
	{
		flashinstalled = 2;
	}
	else
	{
		flashinstalled = 1;
	}
}
else
{
	MSDetect = true;
}

//ACTIONS
if(flashinstalled == 1)
{
	document.write("<img src='images/graphics/header_left.jpg'/>");
}
else if(!MSDetect)
{
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='281' height='106'>");
	document.write("<param name=movie value='flash/webcastlogo.swf'>");
	document.write("<param name=quality value=high>");
	document.write("<embed src='flash/webcastlogo.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='281' height='106'>");
	document.write("</embed> ");
	document.write("</object>");
}




