function DetectFlash() {

	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)
			flashinstalled = 2;
		else
			flashinstalled = 1;
	}
	else
		MSDetect = "true";

	return flashinstalled;
}

//if (flashinstalled == 2)
//{
//	if (flashversion)
//		document.write("You have Flash version " + flashversion + " installed.");
//	else
//		document.write("You have Flash installed, but I can't detect the version.");
//}
//if (flashinstalled == 1) {
//	document.write('<P>Your browser doesn't support Flash Player. Please <A HREF="http://www.adobe.com/go/getflashplayer">click here</A> to download the lastest version of the Flash Player</P>');
//}
//else {
//
//}
