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("a:link {color:#003399; text-decoration:none;}");
document.write("a:visited {color:#cc0033; text-decoration:none;}");
document.write("a:active {color:#cc0033; text-decoration:none;}");
document.write("a:hover {color:#003399; 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(".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}");
		document.write(".text2{font-size:12px; line-height:16px}");
		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:9px; line-height:13px}");
			document.write(".text2{font-size:12px; line-height:16px}");
			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~
			document.write(".text1{font-size:10px; line-height:14px}");
			document.write(".text2{font-size:12px; line-height:16px}");
			document.write(".text3{font-size:16px; line-height:20px}");
			document.write(".text4{font-size:18px; line-height:22px}");

		}
	}
}

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