		var agt=navigator.userAgent.toLowerCase();
		// *** ブラウザージョン ***
		// 注: IE5 ではこの値で 4 が返されるので IE5 の判断には is_ie5up を使用する。
		this.gecko = (agt.indexOf('gecko/') != -1);
		this.safari = (agt.indexOf('applewebkit') != -1);
		this.ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("Opera/") == -1));
		this.ie5 = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
		this.ie5_5 = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
		this.ie5up = (this.ie && !this.ie3 && !this.ie4);
		this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5);
		this.ie6 = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) );
		this.ie6up = (this.ie && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);
		this.ie5macc = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.1")!=-1) );
		this.ie5macx = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.2")!=-1) );
	 	// *** プラットフォーム ***
		this.win =( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
		this.mac = (agt.indexOf("mac")!=-1);
		this.macosx = (agt.indexOf("mac os x")!=-1);
if(this.win){//Win
	if(this.ie && !this.ie6up){document.write("<link rel='stylesheet' href='/common/style/win_ie.css'>");}// *** IE5.5以下
	else if(this.ie6up){document.write("<link rel='stylesheet' href='/common/style/win_ie.css'>");}// *** IE6以降
	else if(this.gecko){document.write("<link rel='stylesheet' href='/common/style/win_gecko.css'>");}// *** gecko（NN6以降）
	else {document.write("<link rel='stylesheet' href='/common/style/others.css'>");}// *** その他
}
else if(this.mac){//Mac
	if(this.ie && !this.ie5macx){document.write("<link rel='stylesheet' href='/common/style/mac_ie.css'>");}// *** IE5以降
	else if(this.gecko){document.write("<link rel='stylesheet' href='/common/style/mac_gecko.css'>");}// *** gecko（NN6以降）
	else if(this.safari){document.write("<link rel='stylesheet' type='text/css' href='/common/style/mac_safari.css'>");}// *** safari
	else {document.write("<link rel='stylesheet' href='/common/style/others.css'>");}// *** その他
}
else{
	document.write("<link rel='stylesheet' href='/common/style/others.css'>");
}
