// KINOTROPE JavaScript Library
// Copyright(C) 1999-2001 KINOTROPE, INC. All Rights Reserved.

// browser check script ver3.0
// Programmed by Yamamoto Kazuyasu.

var gAgent = navigator.userAgent;
var gAppVer = navigator.appVersion;

var gBrowser = navigator.appName;
var gPlatform = null;
var gVersion = null;

if (gAgent.indexOf('Mac') != -1) {
	gPlatform = "Mac";
} else if (gAgent.indexOf('Win') != -1) {
	gPlatform = "Win";
} else {
	gPlatform = "other";
}

if (gAgent.indexOf('MSIE') != -1) {
	gVersion = gAgent.substring((gAgent.indexOf('MSIE') + 5), (gAgent.indexOf('MSIE') + 9));
	gBrowser = "MSIE";

} else if (gAgent.indexOf('MSIE') == -1) {
	gVersion = gAppVer.substring(0,4);
	if (gAgent.indexOf('Gecko') != -1) {
		if (gAgent.indexOf('Netscape') != -1) {
			gVersion = gAgent.substring((gAgent.indexOf('Netscape') + 10), (gAgent.indexOf('Netscape') + 14));
		}
	}
	if (gBrowser == "Netscape") {
		gBrowser = "NN";
	}
}

if (gVersion.indexOf(';') != -1) {
	gVersion = gVersion.substring(0, gVersion.indexOf(';'));
}
if (gVersion.indexOf(' ') != -1) {
	gVersion = gVersion.substring(0, gVersion.indexOf(' '));
}


