/******** cookie **********/
function setCookie(name,value) {var temp = name + '=' + value + ';' + 'expires=Fri, 31-Dec-2050 23:59:59' + ';' + 'path=/'; document.cookie = temp};
function getCookie(name) {var temp = document.cookie + ';';var index;index = temp.indexOf(name,0);if (index != -1) {temp = temp.substring(index,temp.length);index = temp.indexOf('=',0) + 1;return temp.substring(index,temp.indexOf(';',index));} else {return null}};

/******** fontsize **********/
/*
s:min
m:medium
l:max
*/
fontsize = location.search;
if (fontsize != '') {
	fontsize = fontsize.substring(fontsize.length-1, fontsize.length);
	if(fontsize.length == 1 && (fontsize == 's' || fontsize == 'm' || fontsize == 'l')) {
		setCookie('ckfontsize',fontsize);
	} else if(getCookie('ckfontsize') != null) {
		fontsize= getCookie('ckfontsize');
	} else {
		fontsize = 's';
	}
} else if(getCookie('ckfontsize') != null) {
	fontsize= getCookie('ckfontsize');
} else {
	fontsize = 's';
}
document.write('<link rel="stylesheet" type="text/css" href="/navi/css/font_' + fontsize + '.css">');


/******** witeSizeChange **********/
function witeSizeChange(enmoku,page) {
	var temp = '<td><a href="_________url_________?' + enmoku + '+' + page + '+s"><img name="fontsize_s" src="/navi/img/font_chg_s_off.gif" width=32 height=24 border=0></a><a href="_________url_________?' + enmoku + '+' + page + '+m"><img name="fontsize_m" src="/navi/img/font_chg_m_off.gif" width=32 height=24 hspace=3 border=0></a><a href="_________url_________?' + enmoku + '+' + page + '+l"><img name="fontsize_l" src="/navi/img/font_chg_l_off.gif" width=32 height=24 border=0></a></td>';
	temp = temp.split('_________url_________').join(String(location.href).split('?')[0]);
	document.write(temp);
	document.images['fontsize_' + fontsize].src = '/navi/img/font_chg_' + fontsize + '_on.gif';
}
function witeSizeChangeNormal() {
	var temp = '<td><a href="_________url_________?size=s"><img name="fontsize_s" src="/navi/img/font_chg_s_off.gif" width=32 height=24 border=0></a><a href="_________url_________?size=m"><img name="fontsize_m" src="/navi/img/font_chg_m_off.gif" width=32 height=24 hspace=3 border=0></a><a href="_________url_________?size=l"><img name="fontsize_l" src="/navi/img/font_chg_l_off.gif" width=32 height=24 border=0></a></td>';
	temp = temp.split('_________url_________').join(String(location.href).split('?')[0]);
	document.write(temp);
	document.images['fontsize_' + fontsize].src = '/navi/img/font_chg_' + fontsize + '_on.gif';
}
function witeSizeChangeNormalW() {
	var temp = '<td><a href="_________url_________?size=s"><img name="fontsize_s" src="/navi/img/font_chgw_s_off.gif" width=32 height=24 border=0></a><a href="_________url_________?size=m"><img name="fontsize_m" src="/navi/img/font_chgw_m_off.gif" width=32 height=24 hspace=3 border=0></a><a href="_________url_________?size=l"><img name="fontsize_l" src="/navi/img/font_chgw_l_off.gif" width=32 height=24 border=0></a></td>';
	temp = temp.split('_________url_________').join(String(location.href).split('?')[0]);
	document.write(temp);
	document.images['fontsize_' + fontsize].src = '/navi/img/font_chgw_' + fontsize + '_on.gif';
}
function witeSizeChangeNormalE() {
	var temp = '<td><a href="_________url_________?size=s"><img name="fontsize_s" src="/navi/img/font_chge_s_off.gif" width=32 height=24 border=0></a><a href="_________url_________?size=m"><img name="fontsize_m" src="/navi/img/font_chge_m_off.gif" width=32 height=24 hspace=3 border=0></a><a href="_________url_________?size=l"><img name="fontsize_l" src="/navi/img/font_chge_l_off.gif" width=32 height=24 border=0></a></td>';
	temp = temp.split('_________url_________').join(String(location.href).split('?')[0]);
	document.write(temp);
	document.images['fontsize_' + fontsize].src = '/navi/img/font_chge_' + fontsize + '_on.gif';
}
