function writeCSS(){
var _agent = navigator.userAgent.toLowerCase();
var _app = navigator.appName.toLowerCase();

var _win = (_agent.indexOf('win') != -1);
var _mac = (_agent.indexOf('mac') != -1);

var _ie = (_app.indexOf('microsoft') >= 0);
var _ns = (_app.indexOf('netscape') >= 0);

var cssDir = 'http://www12.plala.or.jp/netdrifters/css/';
var cssTags = '<link rel="stylesheet" type="text/css" href="';

if (_win) {
	if (_ns) {
		document.write(cssTags + cssDir + 'win_nn.css">');
	}
	else if (_ie) {
		document.write(cssTags + cssDir + 'win_ie.css">');
	}
	else {
		document.write(cssTags + cssDir + 'style.css">');
	}
}
else if (_mac) {
	if (_ns) {
		document.write(cssTags + cssDir + 'mac_nn.css">');
	}
	else if (_ie) {
		document.write(cssTags + cssDir + 'mac_ie.css">');
	}
	else {
		document.write(cssTags + cssDir + 'style.css">');
	}
}
else {
	document.write(cssTags + cssDir + 'style.css">');
}
}
