<!--

var requiredVersion = 5;
var noFlashPage = "home.htm"
var flash5Installed = false;
var actualVersion = 0;
var hasRightVersion = false;
var jsVersion = 1.0;

// #####  Detect flash in IE browser
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
jsVersion = 1.1;
if (isIE && isWin){
// check flash version
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.' + requiredVersion + '"))) \n');
	document.write('</SCR' + 'IPT\> \n');
// ##### End Detect
}

function detectFlash(){

// #####  Detect flash in NS browser
	if (navigator.plugins){
// check flash version
		if (navigator.plugins["Shockwave Flash"]){
			var flashDescription = navigator.plugins["Shockwave Flash"].description;
			var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
			flash5Installed = flashVersion ==  requiredVersion;
		}
	}
// ##### End Detect

	if (eval("flash5Installed") == true) actualVersion =  requiredVersion;

	if(navigator.userAgent.indexOf("WebTV") != -1) actualVersion = 2;

	if (actualVersion >= requiredVersion) {
		hasRightVersion = true;
	}
}

detectFlash();

if(!hasRightVersion) {
	if(jsVersion > 1.0) {
		window.location.replace(noFlashPage);
	} else {
		window.location = noFlashPage;
	}
}

//-->
