// フォントサイズ設定
var txtSize = new Array( 60,80,100,120,140);
var txtSize_h3 = new Array( 115,125,135,145,155);
var txtSize_h4 = new Array( 100,110,120,130,140);

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

//フォントサイズの変更
function fontSizeChange(num){
  txtPos+=num;
  if (txtPos>4) txtPos=4;
  if (txtPos<0) txtPos=0;  
  
  if(document.all){
    document.all.center.style.fontSize= txtSize[txtPos]+"%";
  } else {
    document.getElementById(center).style.fontSize = txtSize[txtPos]+"%";
  }

  var i=0;
  while (i < document.getElementsByTagName("h3").length) {
    document.getElementsByTagName("h3")[i].style.fontSize= txtSize_h3[txtPos]+"%";
    i+=1;
  }

  i=0;
  while (i < document.getElementsByTagName("h4").length) {
    document.getElementsByTagName("h4")[i].style.fontSize= txtSize_h4[txtPos]+"%";
    i+=1;
  }
}

//カテゴリトップの出力
function Category_Top(category){
  switch (category) {
  case "010select":
    document.write("2005/04/post.html");
    break;
  default:
    document.write(category + "/");
    break;
  }
}

//パンくずリストの出力
function Pankuzu_out(top_url,cat_url,cat_id,cat_name,page_title,page_url){
  switch (page_url) {
  case "http://www.kaigo-shisetsu.com/archives/2005/04/post.html":
  case "http://www.kaigo-shisetsu.com/archives/2005/10/post_413.html":
  case "http://www.kaigo-shisetsu.com/archives/2005/10/post_352.html":
  case "http://www.kaigo-shisetsu.com/archives/2005/05/post_11.html":
  case "http://www.kaigo-shisetsu.com/archives/2005/05/post_13.html":
  case "http://www.kaigo-shisetsu.com/archives/2005/05/post_25.html":
    document.write('<a href="' + top_url + '">トップ</a>＞' + cat_name);
    break;
  default:
    switch (cat_id) {
    case "000top":
      document.write('<a href="' + top_url + '">トップ</a>＞' + page_title);
      break;
    case "010select":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.kaigo-shisetsu.com/archives/2005/04/post.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    case "030open":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.kaigo-shisetsu.com/archives/2005/10/post_413.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    case "040report":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.kaigo-shisetsu.com/archives/2005/10/post_352.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    case "050form":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.kaigo-shisetsu.com/archives/2005/05/post_11.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    case "060link":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.kaigo-shisetsu.com/archives/2005/05/post_13.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    case "070qa":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.kaigo-shisetsu.com/archives/2005/05/post_25.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    default:
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + cat_url + '">' + cat_name + '</a>＞' + page_title);
      break;
    }
    break;
  }
}
