getOSType();
getBrowserName();

//ver
var browser = getBrowserName();
var version = 0;
var s = 0;
var e = 0;
var appVer  = navigator.appVersion;
var uName  = navigator.userAgent.toUpperCase();

if (browser == "Safari"){
	version = eval(appVer.substring(0,3)) - 4;
}

if (browser == "Opera"){
	s = uName.indexOf("OPERA ",0) + 6;
	e = uName.indexOf(" ",s);
	version = eval(uName.substring(s,e));
}

if (browser == "NN"){
	s = appVer.indexOf(" ",0);
	version = eval(appVer.substring(0,s));
	if (version >= 5) version++;
}

if (browser == "IE"){
	s = appVer.indexOf("MSIE ",0) + 5;
	e = appVer.indexOf(";",s);
	version = eval(appVer.substring(s,e));
}

//

document.write("<STYLE TYPE='text/css'><!--");
	document.write("BODY {background-color: #ffffff; color:#000000;}");
	document.write("a:link {color:#16E; text-decoration:none;}");
	document.write("a:visited {color:#16E; text-decoration:none;}");
	document.write("a:active {color:#16E; text-decoration:none;}");
	document.write("a:hover {color:#16E; text-decoration:underline;}");


	if(agent == "Mac"){
		document.write(".text1{font-size:10px; line-height:14px}");
		document.write(".text2{font-size:12px; line-height:16px}");
		document.write(".linetext2{font-size:12px;}");
		document.write(".text3{font-size:14px; line-height:18px}");
		document.write(".text4{font-size:18px; line-height:22px}");

	}else{

		if( bname == "IE"){
			//for WIN IE
			document.write(".text1{font-size:10px; line-height:14px; letter-spacing:1px}");
			document.write(".text2{font-size:12px; line-height:18px}");
			document.write(".linetext2{font-size:12px;}");
			document.write(".text3{font-size:16px; line-height:20px}");
			document.write(".text4{font-size:18px; line-height:22px}");
		}else{
			if( version < 5 ){

				//for WIN NETSCAPE 4.x
				document.write(".text1{font-size:11px; line-height:13px; letter-spacing:1px}");
				document.write(".text2{font-size:12px; line-height:18px}");
				document.write(".linetext2{font-size:12px;}");
				document.write(".text3{font-size:16px; line-height:18px}");
				document.write(".text4{font-size:18px; line-height:20px}");

			}else if( version >= 5 ){
				//for WIN NETSCAPE 6.x~　Firefox1.x~
				document.write(".text1{font-size:10px; line-height:14px; letter-spacing:1px}");
				document.write(".text2{font-size:12px; line-height:18px}");
				document.write(".linetext2{font-size:12px;}");
				document.write(".text3{font-size:16px; line-height:20px}");
				document.write(".text4{font-size:18px; line-height:22px}");

			}
		}
	}

document.write("--></STYLE>");


// ポップアップ
function openWin(url){
	subWin = window.open(url + ".html","sukimaWindow","toolbar=no,location=no,scrollbars=no,status=no,menubar=no,resizable=no,width=700,height=620");
	subWin.focus();
}
