var bbrower = navigator.appVersion.charAt(0);
var aappname = navigator.appName.charAt(0);
var uuserAgent = navigator.userAgent.toUpperCase();

document.write("<STYLE TYPE='text/css'><!--");
document.write("body{background-color:#000000}");
document.write("div{color:#C09642}");
document.write("span.pink{color:#FFC5C8}");
document.write("td.line01{background-image:url('img/line_bg01.gif'); background-repeat:repeat-y}");
document.write("td.line02{background-color:#D5AB55; background-repeat:repeat-x}");
document.write("td.line03{background-image:url('img/line_bg02.gif'); background-repeat:repeat-x}");
document.write("td.line04{background-color:#D5AB55; background-repeat:repeat-y}");
document.write("td.line05{background-image:url('img/r_bg01.gif'); background-repeat:repeat-x}");
document.write("td.line06{background-image:url('img/r_bg10.gif'); background-repeat:repeat-y}");
document.write("td.bg{background-image:url('img/p_bg.gif'); background-repeat:no-repeat}");
document.write("td.bga{background-image:url('img/setsuko_bg1.gif'); background-repeat:no-repeat}");
document.write("td.bgb{background-image:url('img/setsuko_bg2.gif'); background-repeat:no-repeat}");
document.write("td.sp{background-image:url('img/sp2.gif')}");

if( uuserAgent.indexOf( "OPERA" ) >= 0 ){
	// Opera
	document.write(".font1{font-size:10px; line-height:11px;");
	document.write(".font2{font-size:12px; line-height:14px;}");
}
else if(navigator.appVersion.indexOf("Mac") > -1){
	if( aappname == "M" ){
		// MAC IE
		document.write(".font1{font-size:10px;}");
		document.write(".font2{font-size:12px;}");
	}
	else{
		if( bbrower < 5 ){
			// MAC NN 4.x
			document.write(".font1{font-size:10px; line-height:11px;}");
			document.write(".font2{font-size:12px; line-height:14px;}");
	 	}
	 	else{
			// MAC NN 6.x
			document.write(".font1{font-size:10px;}");
			document.write(".font2{font-size:12px;}");
	 	}
	 }
}
else{
	if( aappname == "M" ){
		// WIN IE
		document.write(".font1{font-size:10px; line-height:11px;}");
		document.write(".font2{font-size:12px; line-height:14px;}");
	}
	else{
		if( bbrower < 5 ){
			// WIN NN 4.x
			document.write(".font1{font-size:10px; line-height:11px;}");
			document.write(".font2{font-size:12px; line-height:14px;}");
		}
		else{
			// WIN NN 6.x
			document.write(".font1{font-size:10px; line-height:11px;}");
			document.write(".font2{font-size:12px; line-height:14px;}");
		}
	}
}
 document.write("--></STYLE>");
