<!-- Hide from old browsers
// Copyright © 2000 Alissa Albert
// Created by Alissa Albert (ezscript@bytchandbytes.com)
// EZscripts - http://www.bytchandbytes.com/ezscripts/
// The js deals with NS and the VB with IE

var flashinstalled = 0;
var flashversion = 0;
var	latestversion = 5;

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";


function CheckFlashCompatibility(currentversion,requestedversion)
{
	if(currentversion == null || currentversion == "")
		requestedversion = 0;
	if(requestedversion == null || requestedversion == "")
		requestedversion = latestversion;
	if(currentversion < requestedversion)
	{ 

			ret=confirm("This Activity needs Shockwave Flash version " + requestedversion + " or higher.\nDo you want to download it from http://www.macromedia.com ?")
			if(ret)
				self.location.href='http://www.macromedia.com/downloads/';
	}
}


if(MSDetect == "false")
{
	CheckFlashCompatibility(flashversion,latestversion)
}

///////// backward compatibility function
function GetNetscapeFlashVersion()
{
		return(flashversion);
}


// -->
