var mainCa = new Array();
var subCa  = new Array();
var openTr = new Array();

// Recycle
mainCa[0]=6;
subCa[0]=new Array(),openTr[0]=new Array();
subCa[0][0]="defult",openTr[0][0]="▼カテゴリを選択";
subCa[0][1]="1,http://www.earthtechnica.co.jp/recycling/01.html",openTr[0][1]="RPF製造設備(2)";
subCa[0][2]="1,http://www.earthtechnica.co.jp/recycling/02.html",openTr[0][2]="破砕機・シュレッダ(10)";
subCa[0][3]="1,http://www.earthtechnica.co.jp/recycling/03.html",openTr[0][3]="焼却灰・土壌改良システム(4)";
subCa[0][4]="1,http://www.earthtechnica.co.jp/recycling/04.html",openTr[0][4]="材質選別機(5)";
subCa[0][5]="1,http://www.earthtechnica.co.jp/recycling/05.html",openTr[0][5]="比重・粒度選別機(4)";
subCa[0][6]="1,http://www.earthtechnica.co.jp/recycling/06.html",openTr[0][6]="粉塵防止装置(1)";


// powder
mainCa[1]=3;
subCa[1]=new Array(),openTr[1]=new Array();
subCa[1][0]="defult",openTr[1][0]="▼カテゴリを選択";
subCa[1][1]="1,http://www.earthtechnica.co.jp/powder/01.html",openTr[1][1]="微粉砕機、解砕・整粒(11)";
subCa[1][2]="1,http://www.earthtechnica.co.jp/powder/p7/",openTr[1][2]="粉体形状・粉体表面改質システム(2)";
subCa[1][3]="1,http://www.earthtechnica.co.jp/powder/p40/",openTr[1][3]="混合･造粒機、コーティング･乾燥機(6)";


// crushing
mainCa[2]=9;
subCa[2]=new Array(),openTr[2]=new Array();
subCa[2][0]="defult",openTr[2][0]="▼カテゴリを選択";
subCa[2][1]="1,http://www.earthtechnica.co.jp/crushing/01.html",openTr[2][1]="ジョークラッシャ(5)";
subCa[2][2]="1,http://www.earthtechnica.co.jp/crushing/02.html",openTr[2][2]="旋回式クラッシャ(7)";
subCa[2][3]="1,http://www.earthtechnica.co.jp/crushing/03.html",openTr[2][3]="衝撃式クラッシャ(12)";
subCa[2][4]="1,http://www.earthtechnica.co.jp/crushing/04.html",openTr[2][4]="粉砕機(6)";
subCa[2][5]="1,http://www.earthtechnica.co.jp/crushing/05.html",openTr[2][5]="振動ふるい(1)";
subCa[2][6]="1,http://www.earthtechnica.co.jp/crushing/06.html",openTr[2][6]="分級機(2)";
subCa[2][7]="1,http://www.earthtechnica.co.jp/crushing/07.html",openTr[2][7]="システム(3)";
subCa[2][8]="1,http://www.earthtechnica.co.jp/crushing/08.html",openTr[2][8]="廃材専用機器(3)";
subCa[2][9]="1,http://www.earthtechnica.co.jp/crushing/09.html",openTr[2][9]="供給機(1)";

// casting
mainCa[3]=7;
subCa[3]=new Array(),openTr[3]=new Array();
subCa[3][0]="defult",openTr[3][0]="▼カテゴリを選択";
subCa[3][1]="1,http://www.earthtechnica.co.jp/casting/01.html",openTr[3][1]="環境・リサイクル用(2)";
subCa[3][2]="1,http://www.earthtechnica.co.jp/casting/02.html",openTr[3][2]="浚渫用(1)";
subCa[3][3]="1,http://www.earthtechnica.co.jp/casting/03.html",openTr[3][3]="セメント・窯業用(5)";
subCa[3][4]="1,http://www.earthtechnica.co.jp/casting/04.html",openTr[3][4]="製鉄用(3)";
subCa[3][5]="1,http://www.earthtechnica.co.jp/casting/05.html",openTr[3][5]="砕石・鉱山用(4)";
subCa[3][6]="1,http://www.earthtechnica.co.jp/casting/06.html",openTr[3][6]="各種鋳物部品(2)";
subCa[3][7]="1,http://www.earthtechnica.co.jp/casting/07.html",openTr[3][7]="その他(2)";


// 処理
function liChange(flag,foName,elName,elSubName) {
  var p1=document.forms[foName].elements[elName];
  var p2=document.forms[foName].elements[elSubName];
  var v;
  if (flag=="0") v=p1.options[p1.selectedIndex].value;
  else v=p2.options[p2.selectedIndex].value;
  if (v!="defult") {
    var fl=v.substring(0,v.indexOf(","));
    var na=v.substring(v.indexOf(",")+1,v.length);
    if (fl==0) {
      na=eval(na);
      for (i=0;i<=mainCa[na];i++) {
        p2.options[i]=new Option(openTr[na][i],subCa[na][i]);
      }
      p2.options.length=mainCa[na]+1;
      p2.selectedIndex=0;
    } else location.href=na;
  }
}

