// フォントサイズ設定
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 Pankuzu_out(top_url,cat_url,cat_id,cat_name,page_title,page_url){
  switch (page_url) {
  case "http://www.roshin-recycle.com/archives/2005/05/post_3.html":
  case "http://www.roshin-recycle.com/archives/2005/06/post_4.html":
  case "http://www.roshin-recycle.com/archives/2005/06/post_5.html":
  case "http://www.roshin-recycle.com/archives/2005/06/post_9.html":
  case "http://www.roshin-recycle.com/archives/2005/06/post_14.html":
  case "http://www.roshin-recycle.com/archives/2005/06/post_15.html":
  case "http://www.roshin-recycle.com/archives/2005/05/post_1.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 "010sell":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.roshin-recycle.com/archives/2005/05/post_3.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    case "020compare":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.roshin-recycle.com/archives/2005/06/post_4.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    case "030can":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.roshin-recycle.com/archives/2005/06/post_5.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    case "060qa":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.roshin-recycle.com/archives/2005/06/post_9.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    case "070eco":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.roshin-recycle.com/archives/2005/06/post_14.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    case "080manage":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.roshin-recycle.com/archives/2005/06/post_15.html' + '">' + cat_name + '</a>＞' + page_title);
      break;
    case "090form":
      document.write('<a href="' + top_url + '">トップ</a>＞' + '<a href="' + 'http://www.roshin-recycle.com/archives/2005/05/post_1.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;
  }
}
