/*---------------------------------------------------
 copyright (C) 2003 GEOMETRY graphics
 ----------------------------------------------------
 #100 1-9-34 Minami-kumamoto Kumamoto 860-0812 Japan
 phone number : +81-96-373-0514
 fax number : +81-96-373-0516
 mailto : info@geometry.ne.jp
 url : http://www.geometry.ne.jp/
----------------------------------------------------*/

function browserCheck()
{
	var b = navigator.appName;
	this.bv=3;
	this.mv = parseInt(navigator.appVersion);
	this.opera = (navigator.userAgent.indexOf('Opera')>0);

	if(b=="Opera" || this.opera){
		this.opera = true;
		this.op6 = (navigator.userAgent.indexOf('6.')>0);
		this.op7 = (navigator.userAgent.indexOf('7.')>0);
		if(this.op6 || this.op7){
			this.bv = 6;
			this.b = "ns";
			this.ns6 = true;
			this.ns62 = true;
			this.ns6up = true;
			this.ns61up = true;
			this.ns7up = false;
		}
	}
	else if(b=="Netscape"){
		this.b = "ns";
		this.ns = (this.mv>=4);
		this.ns4 = (this.mv==4);
		this.ns6 = (navigator.userAgent.indexOf('6.')>0);
		this.ns7 = (navigator.userAgent.indexOf('7.')>0);
		this.ns40 = (navigator.userAgent.indexOf('/4.0')>0);

		if(!(this.ns60 = (navigator.userAgent.indexOf('6.0')>0)))
			this.ns60 = (navigator.userAgent.indexOf('0.8')>0); //Mozilla 0.8

		this.ns61 = (navigator.userAgent.indexOf('6.1')>0);

		if(!(this.ns62 = (navigator.userAgent.indexOf('6.2')>0)))
			this.ns62 = (navigator.userAgent.indexOf('0.9')>0); //Mozilla 0.9

		if(!(this.ns70 = (navigator.userAgent.indexOf('7.0')>0)))
			this.ns70 = (navigator.userAgent.indexOf('rv:1.')>0); //Mozilla 1.0

		if(!(this.ns71 = (navigator.userAgent.indexOf('7.1')>0)))
			this.ns71 = (navigator.userAgent.indexOf('rv:1.')>0); //Mozilla 1.0

		if(this.ns4)this.bv=4;
		if(this.ns6)this.bv=6;
		if(this.ns7)this.bv=7;
		if(this.ns60)this.bv=60;
		if(this.ns61)this.bv=61;
		if(this.ns62)this.bv=62;
		if(this.ns70)this.bv=70;
		if(this.ns71)this.bv=71;
		this.ns6up = (this.ns6 || this.ns7);
		this.ns61up = (this.ns61 || this.ns7);
		this.ns7up = (this.ns7);
	}
	else if(b=="Microsoft Internet Explorer"){
		this.b = "ie";
		this.ie = (this.mv>=4);
		this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0);
		this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
		this.ie50 = (navigator.userAgent.indexOf('MSIE 5.0')>0);
		this.ie51 = (navigator.userAgent.indexOf('MSIE 5.1')>0);
		this.ie55 = (navigator.userAgent.indexOf('MSIE 5.5')>0);
		this.ie6 = (navigator.userAgent.indexOf('MSIE 6')>0);
		this.ie60 = (navigator.userAgent.indexOf('MSIE 6.0')>0);
		if(this.ie4)this.bv=4;
		if(this.ie5)this.bv=5;
		if(this.ie51)this.bv=51;
		if(this.ie55)this.bv=55;
		if(this.ie6)this.bv=6;
		this.ie5up = (this.ie5 || this.ie55 || this.ie6);
		this.ie55up = (this.ie55 || this.ie6);
	}
	else	this.b = b;

	if(navigator.userAgent.indexOf("Mac")!=-1)
		this.p = "mac";
	else if(navigator.userAgent.indexOf("Win")!=-1)
		this.p = "win";
	else if(navigator.userAgent.indexOf("Linux")!=-1)
		this.p = "linux";
	else	this.p = "other";
}

var is = new browserCheck();

if(is.bv<4 || is.ns4 || is.ns60 || is.ns61 || (is.p=="mac" && is.ie4)){
	top.location.href="./support.html";
}
