//Browser Detection v1.4
//bName = browser name
//bVer = browser version

var useragent = navigator.userAgent;

//var bName = (useragent.indexOf('Opera') > -1) ? 'Opera' : navigator.appName;
if(useragent.indexOf('Opera') > -1){
	bName = "Opera"
}
else if(useragent.indexOf('Firefox') > -1){
	bName="Firefox"
}
else if((useragent.indexOf('Mozilla') > -1) && (navigator.appName.indexOf('Netscape') == -1)){
	if((useragent.indexOf('MSIE') > -1) || (useragent.indexOf('Netscape') > -1)){
		bName = navigator.appName
	}
	else{
		bName = "Mozilla"
	}
}
else{
	bName = navigator.appName
}

var pos = useragent.indexOf('MSIE');
if (pos > -1) {
bVer = useragent.substring(pos + 5);
var pos = bVer.indexOf(';');
var bVer = bVer.substring(0,pos);
}
var pos = useragent.indexOf('Opera');
if (pos > -1) {
bVer = useragent.substring(pos + 6);
var pos = bVer.indexOf(' ');
var bVer = bVer.substring(0, pos);
}
if (bName == "Netscape") {
var bVer = useragent.substring(8);
var pos = bVer.indexOf(' ');
var bVer = bVer.substring(0, pos);
}
if (bName == "Netscape" && parseInt(navigator.appVersion) >= 5) {
var pos = useragent.lastIndexOf('/');
var bVer = useragent.substring(pos + 1);
}
if (bName == "Firefox") {
var pos = useragent.lastIndexOf('/');
var bVer = useragent.substring(pos + 1);
}

if ((bName == "Netscape") && (bVer < 6)){
	window.location = "error.htm"
}

if ((bName == "Microsoft Internet Explorer") && (bVer < 5)){
	window.location = "error.htm"
}
