var agent = navigator.userAgent;
var appver = navigator.appVersion;
var navi = navigator.appName;
var fontpoint = 0;
var font = "";
if(navi.indexOf('Netscape') != -1){
// NetscapeNavigator
	if(appver.charAt(0) <= 3){
	}else if(appver.charAt(0) >= 5){
		if(agent.indexOf('Win') != -1){
			fontpoint = 10;
		}else if(agent.indexOf('Mac') != -1){
			fontpoint = 10;
		}
	}else if(agent.indexOf('Win') != -1){
		fontpoint = 10;
	}else if(agent.indexOf('Mac') != -1){
		fontpoint = 10;
	}else{
		fontpoint = 12;
	}
}else{
// MicrosoftInternetExplorer
	if(appver.charAt(0) <= 3){
	}else if(agent.indexOf('Mac') != -1){
		if(appver.indexOf('5.0') != -1){
			fontpoint = 9;
		}else{
			fontpoint = 11;
		}
	}else{
		fontpoint = 10;
	}
}
/*
	スタイルシートのパラメータを書き出す
*/
var fontstyle = "font-family: ＭＳ Ｐゴシック,Arial,Helvetica,Verdana, serif;";
document.write('<STYLE type="text/css"><!--');
document.write('BODY		{BACKGROUND-COLOR: #FFFFFF; FONT-SIZE: ' + fontpoint + 'pt; color: #000000; ' + fontstyle + '}');
document.write('A:link		{COLOR: #2222FF; SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: none; ' + fontstyle + '}');
document.write('A:visited	{COLOR: #33339B; SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: none; ' + fontstyle + '}');
document.write('A:active	{COLOR: #00ff00; SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: none; ' + fontstyle + '}');
document.write('A:hover		{COLOR: #FF0000; SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: none; ' + fontstyle + '}');
document.write('TABLE,TH,TD	{FONT-SIZE: ' + fontpoint + 'pt; color: #000000; ' + fontstyle + '}');
document.write('SELECT		{FONT-SIZE: ' + fontpoint + 'pt; color: #000000; ' + fontstyle + '}');
// フォントに対するスタイル
document.write('.bBL		{FONT-SIZE: ' + fontpoint + 'pt; color: #000080; font-weight: bold; ' + fontstyle + '}');
document.write('.bWH		{FONT-SIZE: ' + fontpoint + 'pt; color: #ffffff; font-weight: bold; ' + fontstyle + '}');
document.write('.bBK		{FONT-SIZE: ' + fontpoint + 'pt; color: #000000; font-weight: bold; ' + fontstyle + '}');
document.write('.bGR		{FONT-SIZE: ' + fontpoint + 'pt; color: #777777; font-weight: bold; ' + fontstyle + '}');
document.write('.bRD		{FONT-SIZE: ' + fontpoint + 'pt; color: #B22222; font-weight: bold; ' + fontstyle + '}');
document.write('.bDG		{FONT-SIZE: ' + fontpoint + 'pt; color: #444444; font-weight: bold; ' + fontstyle + '}');
document.write('.bGN		{FONT-SIZE: ' + fontpoint + 'pt; color: #008000; font-weight: bold; ' + fontstyle + '}');
document.write('.bYE		{FONT-SIZE: ' + fontpoint + 'pt; color: #FFD700; font-weight: bold; ' + fontstyle + '}');
document.write('.bOR		{FONT-SIZE: ' + fontpoint + 'pt; color: #FF8C00; font-weight: bold; ' + fontstyle + '}');
document.write('.bBR		{FONT-SIZE: ' + fontpoint + 'pt; color: #602503; font-weight: bold; ' + fontstyle + '}');
document.write('.bPK		{FONT-SIZE: ' + fontpoint + 'pt; color: #FF69B4; font-weight: bold; ' + fontstyle + '}');
document.write('.bDP		{FONT-SIZE: ' + fontpoint + 'pt; color: #FF1493; font-weight: bold; ' + fontstyle + '}');
document.write('.bGG		{FONT-SIZE: ' + fontpoint + 'pt; color: #005000; font-weight: bold; ' + fontstyle + '}');
document.write('.bSB		{FONT-SIZE: ' + fontpoint + 'pt; color: #6A5ACD; font-weight: bold; ' + fontstyle + '}');
document.write('.buBK		{FONT-SIZE: ' + fontpoint + 'pt; color: #000000; font-weight: bold; text-decoration:underline; ' + fontstyle + '}');
document.write('.buRD		{FONT-SIZE: ' + fontpoint + 'pt; color: #B22222; font-weight: bold; text-decoration:underline; ' + fontstyle + '}');
document.write('.WH			{FONT-SIZE: ' + fontpoint + 'pt; color: #ffffff; ' + fontstyle + '}');
document.write('.GR			{FONT-SIZE: ' + fontpoint + 'pt; color: #777777; ' + fontstyle + '}');
document.write('.DG			{FONT-SIZE: ' + fontpoint + 'pt; color: #444444; ' + fontstyle + '}');
document.write('.BL			{FONT-SIZE: ' + fontpoint + 'pt; color: #0000C0; ' + fontstyle + '}');
document.write('.RD			{FONT-SIZE: ' + fontpoint + 'pt; color: #B22222; ' + fontstyle + '}');
document.write('.YE			{FONT-SIZE: ' + fontpoint + 'pt; color: #FFD700; ' + fontstyle + '}');
document.write('.OR			{FONT-SIZE: ' + fontpoint + 'pt; color: #FF4500; ' + fontstyle + '}');
document.write('.BR			{FONT-SIZE: ' + fontpoint + 'pt; color: #602503; ' + fontstyle + '}');
document.write('.GN			{FONT-SIZE: ' + fontpoint + 'pt; color: #008000; ' + fontstyle + '}');
document.write('.GG			{FONT-SIZE: ' + fontpoint + 'pt; color: #005000; ' + fontstyle + '}');
document.write('.SB			{FONT-SIZE: ' + fontpoint + 'pt; color: #6A5ACD; ' + fontstyle + '}');
document.write('.PK			{FONT-SIZE: ' + fontpoint + 'pt; color: #FF69B4; ' + fontstyle + '}');
document.write('.DP			{FONT-SIZE: ' + fontpoint + 'pt; color: #FF1493; ' + fontstyle + '}');
document.write('.sWH		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #ffffff; ' + fontstyle + '}');
document.write('.sGR		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #777777; ' + fontstyle + '}');
document.write('.sDG		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #444444; ' + fontstyle + '}');
document.write('.sBL		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #0000C0; ' + fontstyle + '}');
document.write('.sRD		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #B22222; ' + fontstyle + '}');
document.write('.sYE		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #FFD700; ' + fontstyle + '}');
document.write('.sOR		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #FF4500; ' + fontstyle + '}');
document.write('.sBR		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #802503; ' + fontstyle + '}');
document.write('.sSB		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #8A5ACD; ' + fontstyle + '}');
document.write('.sBK		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #000000; ' + fontstyle + '}');
document.write('.sGN		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #228B22; ' + fontstyle + '}');
document.write('.sPK		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #FF69B4; ' + fontstyle + '}');
document.write('.sDP		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #FF1493; ' + fontstyle + '}');
document.write('.sGG		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #005000; ' + fontstyle + '}');
document.write('.sbBL		{FONT-SIZE: ' + (fontpoint - 2) + 'pt; color: #0000C0; font-weight: bold; ' + fontstyle + '}');
// リンクアンカー文字に関するスタイル
document.write('A.sDEF:link		{COLOR: #2222FF; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.sDEF:visited	{COLOR: #33339B; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.sDEF:active	{COLOR: #00ff00; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.sDEF:hover	{COLOR: #FF0000; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: underline; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.sWH:link		{COLOR: #FFFFFF; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.sWH:visited	{COLOR: #DDDDDD; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.sWH:active	{COLOR: #FFAAAA; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.sWH:hover		{COLOR: #EEEE00; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: underline; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.WH:link		{COLOR: #FFFFFF; FONT-SIZE: ' + (fontpoint) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.WH:visited	{COLOR: #DDDDDD; FONT-SIZE: ' + (fontpoint) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.WH:active		{COLOR: #FFAAAA; FONT-SIZE: ' + (fontpoint) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.WH:hover		{COLOR: #EEEE00; FONT-SIZE: ' + (fontpoint) + 'pt; TEXT-DECORATION: underline; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.sGR:link		{COLOR: #555555; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.sGR:visited	{COLOR: #888888; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.sGR:active	{COLOR: #000000; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.sGR:hover		{COLOR: #FF0000; FONT-SIZE: ' + (fontpoint - 2) + 'pt; TEXT-DECORATION: underline; SIZE: ' + (fontpoint - 2) + 'pt; ' + fontstyle + '}');
document.write('A.GR:link		{COLOR: #555555; FONT-SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: none; SIZE: ' + fontpoint + 'pt; ' + fontstyle + '}');
document.write('A.GR:visited	{COLOR: #888888; FONT-SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: none; SIZE: ' + fontpoint + 'pt; ' + fontstyle + '}');
document.write('A.GR:active		{COLOR: #000000; FONT-SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: none; SIZE: ' + fontpoint + 'pt; ' + fontstyle + '}');
document.write('A.GR:hover		{COLOR: #FF0000; FONT-SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: underline; SIZE: ' + fontpoint + 'pt; ' + fontstyle + '}');
document.write('A.bDEF:link		{COLOR: #2222FF; FONT-SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; font-weight: bold; ' + fontstyle + '}');
document.write('A.bDEF:visited	{COLOR: #33339B; FONT-SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; font-weight: bold; ' + fontstyle + '}');
document.write('A.bDEF:active	{COLOR: #00ff00; FONT-SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; font-weight: bold; ' + fontstyle + '}');
document.write('A.bDEF:hover	{COLOR: #FF0000; FONT-SIZE: ' + fontpoint + 'pt; TEXT-DECORATION: none; SIZE: ' + (fontpoint - 2) + 'pt; font-weight: bold; ' + fontstyle + '}');
document.write('.submenu { position:absolute ; top:120px ; left:200px ; z-index:2 ; visibility:block }')
document.write('--></STYLE>');


function MM_openBrWindow(theURL,winName,features) { //v2.0
//  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if(restore)
		selObj.selectedIndex=0;
}

function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr;
	for(i=0; a && i < a.length&&(x=a[i]) && x.oSrc; i++)
		x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
	var d=document;
	if(d.images){
		if(!d.MM_p)
			d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
		for(i=0; i<a.length; i++)
		if(a[i].indexOf("#") != 0){
			d.MM_p[j]=new Image;
			d.MM_p[j++].src=a[i];
		}
	}
}

function MM_findObj(n, d) { //v4.01
	var p,i,x;
	if(!d) d=document;
	if((p=n.indexOf("?")) > 0 && parent.frames.length){
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all) x=d.all[n];
	for(i=0; !x && i < d.forms.length; i++)
		x=d.forms[i][n];
	for(i=0; !x && d.layers && i < d.layers.length; i++)
		x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById)
		x=d.getElementById(n);
	return x;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments;
	document.MM_sr=new Array;
	for(i=0; i < (a.length-2); i+=3)
		if((x=MM_findObj(a[i]))!=null){
			document.MM_sr[j++]=x;
			if(!x.oSrc) x.oSrc=x.src;
		x.src=a[i+2];
	}
}

function popUp(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
self.name = "mainWin";
}

function setImage(path){
	MM_preloadImages(
"img/english2.gif",
"img/chinese2.gif",
"img/japanese2.gif",
"img/link0on.gif",
"img/link1on.gif",
"img/link2on.gif",
"img/link3on.gif",
"img/link4on.gif",
"img/link5on.gif",
"img/link6on.gif",
"img/contact_on.gif");
}
