<!--

// @@@@@@@@@ detect browser @@@@@@@@@@@@@
if(navigator.appName.charAt(0)=="N"){
	if(navigator.appVersion.charAt(0)==6) //NN6
		ua ="NS6"
	if(navigator.appVersion.charAt(0)==4) //NN4
		ua ="NS4";
}
if(navigator.appName.charAt(0)=="M"){
	if(navigator.appVersion.charAt(0)==4){
		if(navigator.appVersion.indexOf("MSIE 6") != -1) //IE6 detected
			ua ="IE6";
		else if(navigator.appVersion.indexOf("MSIE 5") != -1) //IE5 detected
			ua ="IE5";
		else
			ua ="IE4"; //IE4 detected
	}
}


// @@@@@@@@@ detect stylefile directory @@@@@@@@@@
if( location.protocol == "file:" ) {
	mypath = location.pathname

	lspath = mypath.lastIndexOf("japanese")
	if( lspath != -1 ){
		mypath = mypath.substring(1,lspath+8)
		tmp = mypath.split("%20")
		mypath2 = ""
		for( var i=0; i<tmp.length; i++ )
			mypath2 = mypath2+tmp[i]+" "
	}
	else{
		lspath = mypath.lastIndexOf("english")
		mypath = mypath.substring(1,lspath+7)
		tmp = mypath.split("%20")
		mypath2 = ""
		for( var i=0; i<tmp.length; i++ )
			mypath2 = mypath2+tmp[i]+" "
	}

	mypath2 = mypath2.substring(0,mypath2.length-1)
	mypath2 = mypath2+"\\"
}
else{
	mypath = location.href

	lspath = mypath.lastIndexOf("japanese")
	if( lspath != -1 ){
		mypath = mypath.substring(0,lspath+8)
		tmp = mypath.split("%20")
		mypath2 = ""
		for( var i=0; i<tmp.length; i++ )
			mypath2 = mypath2+tmp[i]+" "
	}
	else{
		lspath = mypath.lastIndexOf("english")
		mypath = mypath.substring(0,lspath+7)
		tmp = mypath.split("%20")
		mypath2 = ""
		for( var i=0; i<tmp.length; i++ )
			mypath2 = mypath2+tmp[i]+" "
	}

	mypath2 = mypath2.substring(0,mypath2.length-1)
	mypath2 = mypath2+"/"
}


// @@@@@@@@@ detect platform @@@@@@@@@@@
if(navigator.platform.indexOf("Mac") != -1) //macintosh OS detected
	pf="MAC";
if(navigator.platform.indexOf("Win") != -1) //windows OS detected
	pf="WIN";


// @@@@@@@@@ set default setting and color setting @@@@@@@@@@@@@@
document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"", mypath2, "commonattrib.css\">");

document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"", mypath2, "fsize.css\">");

// @@@@@@@@@ set font size and line height setting depends on differences of browsers @@@@@@@@@@@
//if( (pf=="MAC" && ua=="NS4") || (pf=="MAC" && ua=="IE4") ){
//	document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"", mypath2, "fsize2.css\">");
//}
//else{
//	document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"", mypath2, "fsize.css\">");
//}

//-->

