// cssの名前
var cssName		= new Array( "SS", "S","M", "L", "LL");


// フォントサイズ設定
var FS		= new Array(   10,   12,   14,   18,   24);
var LH		= new Array(   14,   16,   18,   22,   28);



// テキストカラーの設定
var txtColorName	= new Array(   "",     "d",     "w",     "k",     "b")
var txtColor		= new Array(   "","#000066","#ffffff","#323232","#0033cc")

// フォントサイズ可変CSSのサイズバリエーション
var txtSize	= new Array( 10,12,14,18,24);
var txtHeight	= new Array( 14,16,18,22,28);

if( brw_p == "W" ){
	txtSize[0]=12; txtSize[1]=14; txtSize[2]=16; txtSize[3]=18; txtSize[4]=20;
}


// フォントサイズ可変CSSのデフォルトサイズ（配列の位置）
var txtPos=1;



if( brw_p == "W" ){
	FS[0]=11; FS[1]=12; FS[2]=14; FS[3]=18; FS[4]=24;
	if (iNN4){
		LH[0]=12; LH[1]=14; LH[2]=16; LH[3]=20; LH[4]=26;
	} else {
		LH[0]=15; LH[1]=16; LH[2]=18; LH[3]=22; LH[4]=28;
	}
	printCss();
}
if( brw_p == "M" ){
	printCss();
}


function printCss(){
	document.write("<STYLE TYPE='text/css'><!--");
	document.write("A:Hover{text-decoration : underline;}");
	document.write("A { text-decoration : none; }");
	for (i=0;i<cssName.length;i++){
		for (j=0;j<txtColorName.length;j++){
			document.write("."+cssName[i]+txtColorName[j]+" , ."+cssName[i]+txtColorName[j]+" A { font-size: "+eval('FS'+'['+i+']')+"px;  line-height: "+eval('LH'+'['+i+']')+"px;");
			if ( txtColorName[j] ) document.write(" color: "+txtColor[j]+";");
			document.write("}");
		}
	}
	document.write("//--></style>");
}

var resizeTxt=10;
var genre = new Array();

function fontSizeChange(num){

	txtPos+=num;
	if (txtPos>4) txtPos=4;
	if (txtPos<0) txtPos=0;	
	
	if(document.all){
		for (i=0;i<=genre.length;i++){
			if (genre[i]){
				if (document.all[genre[i]]){
					document.all[genre[i]].style.fontSize = txtSize[txtPos]+"px";
					document.all[genre[i]].style.lineHeight = txtHeight[txtPos]+"px";
				}
			}
		}
		for (i=0;i<=resizeTxt;i++){
			if (document.all["resize"+i]){
				document.all["resize"+i].style.fontSize = txtSize[txtPos]+"px";
				document.all["resize"+i].style.lineHeight = txtHeight[txtPos]+"px";
			}
		}

	} else {
		for (i=0;i<=genre.length;i++){
			if (genre[i]){
				if (document.getElementById(genre[i])){
					document.getElementById(genre[i]).style.fontSize = txtSize[txtPos]+"px";
					document.getElementById(genre[i]).style.lineHeight = txtHeight[txtPos]+"px";
				}
			}
		}
		for (i=0;i<=resizeTxt;i++){
			if(document.getElementById("resize"+i)&&!document.all){
				document.getElementById("resize"+i).style.fontSize = txtSize[txtPos]+"px";
				document.getElementById("resize"+i).style.lineHeight = txtHeight[txtPos]+"px";
			}
		}
		
	}
}

function printResizeButton(){
	if( (brw_v != "4" || brw_n != "N") && brw_n != "O" ) {
	document.write("&nbsp;<A HREF='javascript:void(0);' ONCLICK=fontSizeChange(+1)><IMG src=/images/plus.gif border=0 alt=ZoomIn></A>");
	document.write("<img src='images/spacer.gif' width='2' height='1'>");
	document.write("&nbsp;<A HREF='javascript:void(0);' ONCLICK=fontSizeChange(-1)><IMG src=/images/minus.gif border=0 alt=ZoomOut></A>");
	} else {
	document.write("<img src='images/spacer.gif'  width='2' height='1'>");
	}
}

