
/* init */
var browserVersion = navigator.appVersion.charAt(0);
var applicationName = navigator.appName.charAt(0);
var Macintosh = (navigator.appVersion.indexOf("Mac") > -1);
var internetExplorer = "M";
var formerVersionOfNetscape = 5;

/* function */
function setCascadingStyleSheet() {
	document.write("<STYLE type='text/css'><!--")
	if (Macintosh) { // for Mac Users
		if (applicationName == internetExplorer) { // Internet Explorer
		document.write("BODY,TH,TR,TD{color: #333333; line-height: 130%; font-size: small}")
		document.write(".s{font-size: x-small}")
		}
		else { // Netscape
			if (browserVersion < formerVersionOfNetscape) {
		document.write("BODY,TH,TR,TD{color: #333333; font-size: normal}")
		document.write(".s{font-size: x-small}")
			}
			else {
		document.write("BODY,TH,TR,TD{color: #333333; line-height: 140%; font-size: small}")
		document.write(".s{font-size: x-small}")
			}
		}
	}
	else { // for Win Users
		if (applicationName == internetExplorer) { // Internet Explorer
		document.write("BODY,TH,TR,TD{color: #333333;font-size:x-small; line-height: 130%; letter-spacing:1px}")
		document.write(".s{font-size: xx-small}")
		}
		else { // Netscape
			if (browserVersion < formerVersionOfNetscape) {
		document.write("BODY,TH,TR,TD{color: #333333; font-size: small}")
		document.write(".s{font-size: x-small}")
			}
			else {
		document.write("BODY,TH,TR,TD{color: #333333; line-height: 140%; font-size: small}")
		document.write(".s{font-size: x-small}")
			}
		}
	}

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

/* exec */
setCascadingStyleSheet();
