document.write ('<link rel="stylesheet" type="text/css" href="/img/css/txt' + ((readCookie ("fontsize") == "large") ? "_l" : ((readCookie ("fontsize") == "small") ? "_s" : "")) + '.css">');

function changeTxtSetting (s) { writeCookie ("fontsize", s, 1, "/"); }
function printTxtSetting ( ) {
document.write (
  '<div class="txtsizebtn"><img src="/img/category/t_textsize.png" alt="文字サイズ" title="文字サイズ" />'
);
if( readCookie ("fontsize") == 'small' ){
  document.write ('<img src="/img/category/btn_textsize_s_on.png" alt="文字サイズ小" title="文字サイズ小" style="margin-right:3px;" />' );
} else {
  document.write ('<a href="javascript:location.reload ();"><img onclick="javascript:changeTxtSetting (\'small\')" class="sizebtn" src="/img/category/btn_textsize_s.png" alt="文字サイズ小" title="文字サイズ小" /></a>' );
}
if( readCookie ("fontsize") != 'large' && readCookie ("fontsize") != 'small' ){
  document.write ( '<img src="/img/category/btn_textsize_m_on.png" alt="文字サイズ中" title="文字サイズ中" style="margin-right:3px;" />' );
} else {
  document.write ( '<a href="javascript:location.reload ();"><img onclick="javascript:changeTxtSetting (\'\')" class="sizebtn" src="/img/category/btn_textsize_m.png" alt="文字サイズ中" title="文字サイズ中" /></a>' );
}
if( readCookie ("fontsize") == 'large' ){
  document.write ( '<img src="/img/category/btn_textsize_l_on.png" alt="文字サイズ大" title="文字サイズ大" />' );
} else {
  document.write ( '<a href="javascript:location.reload ();"><img onclick="javascript:changeTxtSetting (\'large\')" src="/img/category/btn_textsize_l.png" alt="文字サイズ大" title="文字サイズ大" /></a>' );
}
document.write (
  '</div>'
);
}
