/* FontSize Object
----------------------------------------------------------------------------- */

var defaultSize = 12;
var ckName = "Geikyo";

var manager = new CookieManager();
var currentSize = manager.getCookie(ckName);
if (currentSize == null) {
	currentSize = defaultSize;
}
document.writeln('<style type="text/css" media="screen,print,tv">' );
document.writeln('<style type="text/css" media="screen,print,tv">' );
document.write('* { font-size: 100%; }');
document.write('body {	font-size: ' + currentSize + 'px;}');
document.writeln('</style>');
	
/*	fontSize
リロード後クッキーに書き込みを実行
---------------------------------------------------------*/
function fontSize(size,path){
	location.reload();
	manager.setCookie(ckName,size);//クッキー書き込み
}

/*  fontImg
---------------------------------------------------------*/
function fontImg(size,path){
	if(size == 12) {
		document.getElementById("flarge").src = path + "common/img/btn_fontsize_up.gif";
		document.getElementById("fnormal").src = path + "common/img/btn_fontsize_normal_on.gif";
	} else if (size == 16) {
		document.getElementById("flarge").src = path + "common/img/btn_fontsize_up_on.gif";
		document.getElementById("fnormal").src = path + "common/img/btn_fontsize_normal.gif";
	}
	
}