var flash_version = 8;
var FlashInstalled = false;
var pickupNetscape = false;
checkB = new BrowserCheck();

function BrowserCheck(){
//alert(navigator.appName);
//alert(navigator.appVersion);
		var b = navigator.appName;
		if (b=="Netscape") this.b = "NN";
		else if (b=="Microsoft Internet Explorer") this.b = "IE";
		else this.b = b;
		this.version = navigator.appVersion;
		this.v = parseInt(this.version);
		
		this.NN = (this.b=="NN");
		this.NN4 = (this.b=="NN" && this.v==4);
		this.NN6 = (this.b=="NN" && this.v==5);
		
		this.IE = (this.b=="IE");
		this.IE4 = (this.version.indexOf('MSIE 4')>0);
		this.IE45 = (this.version.indexOf('MSIE 4.5')>0);
		this.IE5 = (this.version.indexOf('MSIE 5')>0);
		this.IE6 = (this.version.indexOf('MSIE 6')>0);
		this.IE7 = (this.version.indexOf('MSIE 7')>0);
		
		this.Win = (navigator.appVersion.indexOf("Win",0) != -1);
		this.Mac = (navigator.appVersion.indexOf("Mac",0) != -1);
		this.Unix = (navigator.appVersion.indexOf("X11",0) != -1);
}

if(checkB.IE || checkB.NN){
//alert("a1");
//alert(checkB.version);
	if (checkB.Win && checkB.IE){
//alert("b1");
		document.writeln('<script language=\"VBscript\">');
		document.writeln('on error resume next');
		document.writeln('FlashInstalled = IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.' + flash_version + '\"))');
		document.writeln('<\/script>');
}else if(checkB.Mac && checkB.IE){
//alert("b2");
	if(!checkB.IE4 && !checkB.IE45 && navigator.plugins["Shockwave Flash"]){
		var sp = navigator.plugins["Shockwave Flash"].description.indexOf("Flash");
		var ep = navigator.plugins["Shockwave Flash"].description.lastIndexOf(" ");
		var aver = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+6,ep));
		if(aver >= flash_version){
			FlashInstalled = true;
//alert("b2OK");
		}
	}
}else if(checkB.NN && navigator.plugins["Shockwave Flash"]){
//alert("b3");
	var sp = navigator.plugins["Shockwave Flash"].description.indexOf("Flash");
	var ep = navigator.plugins["Shockwave Flash"].description.lastIndexOf(" ");
	var aver = parseFloat(navigator.plugins["Shockwave Flash"].description.substring(sp+6,ep));
	if(aver >= flash_version){
//alert("b3OK");
		FlashInstalled = true;
	}
}
}


if(FlashInstalled == false){
//alert("no");
	location.href="noplugin.html";
}
