var width = 27;	
var height = 27;

var source = new Array();
source[0] = "/common/img/large_01.gif";
source[1] = "/common/img/middle_01.gif";
source[2] = "/common/img/small_01.gif";

var change = new Array();
change[0] = "/common/img/large_02.gif";
change[1] = "/common/img/middle_02.gif";
change[2] = "/common/img/small_02.gif";

function fontsizeImage() {
	// Cookieの読み込み
	var cookie = new Cookie("KOKUYOecoud",1);
	var cssfile = cookie.get("KOKUYOecoud");

	var selectImage = "";

document.write('<img src="/common/img/fontsize_title.gif" alt="文字サイズを変更" width="83" height="27" border="0">');
	if(cssfile) {
		if(cssfile == "large") {
			document.write('<a href="javascript:reloadPage(\'large\');">');
			document.write('<img src="' + change[0] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 大">');
			document.write('</a>');
			document.write('<a href="javascript:reloadPage(\'middle\');">');
			document.write('<img src="' + source[1] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 中">');
			document.write('</a>');
			document.write('<a href="javascript:reloadPage(\'small\');">');
			document.write('<img src="' + source[2] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 小">');
			document.write('</a>');
		} else if(cssfile == "middle") {
			document.write('<a href="javascript:reloadPage(\'large\');">');
			document.write('<img src="' + source[0] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 大">');
			document.write('</a>');
			document.write('<a href="javascript:reloadPage(\'middle\');">');
			document.write('<img src="' + change[1] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 中">');
			document.write('</a>');
			document.write('<a href="javascript:reloadPage(\'small\');">');
			document.write('<img src="' + source[2] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 小">');
			document.write('</a>');
		} else if(cssfile == "small") {
			document.write('<a href="javascript:reloadPage(\'large\');">');
			document.write('<img src="' + source[0] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 大">');
			document.write('</a>');
			document.write('<a href="javascript:reloadPage(\'middle\');">');
			document.write('<img src="' + source[1] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 中">');
			document.write('</a>');
			document.write('<a href="javascript:reloadPage(\'small\');">');
			document.write('<img src="' + change[2] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 小">');
			document.write('</a>');
		}
	} else {
		document.write('<a href="javascript:reloadPage(\'large\');">');
		document.write('<img src="' + source[0] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 大">');
		document.write('</a>');
		document.write('<a href="javascript:reloadPage(\'middle\');">');
		document.write('<img src="' + change[1] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 中">');
		document.write('</a>');
		document.write('<a href="javascript:reloadPage(\'small\');">');
		document.write('<img src="' + source[2] + '" border="0" width="' + width + '" height="' + height + '" alt="フォントサイズ 小">');
		document.write('</a>');
	}
}


