
var h = new Array();
var i = new Array();
var a = new Array();

//以下の配列の内容を希望するものに変更する。
h[0]='<a href="javascript:void(0)" id="imageon" name="main21"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
h[1]='<a href="javascript:void(0)" id="imageon" name="main22"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
h[2]='<a href="javascript:void(0)" id="imageon" name="main23"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
h[3]='<a href="javascript:void(0)" id="imageon" name="main24"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
h[4]='<a href="javascript:void(0)" id="imageon" name="main25"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
h[5]='<a href="javascript:void(0)" id="imageon" name="main26"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
h[6]='<a href="javascript:void(0)" id="imageon" name="main27"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
h[7]='<a href="javascript:void(0)" id="imageon" name="main28"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';

i[0]='<img src="image/top/main_01.jpg" width="363" height="363" />';
i[1]='<img src="image/top/main_02.jpg" width="363" height="363" />';
i[2]='<img src="image/top/main_03.jpg" width="363" height="363" />';
i[3]='<img src="image/top/main_04.jpg" width="363" height="363" />';
i[4]='<img src="image/top/main_05.jpg" width="363" height="363" />';
i[5]='<img src="image/top/main_06.jpg" width="363" height="363" />';
i[6]='<img src="image/top/main_07.jpg" width="363" height="363" />';
i[7]='<img src="image/top/main_08.jpg" width="363" height="363" />';


a["main21"]='<a href="javascript:void(0)" onmouseover="changetext(\'0\');changetext2(\'0\',\'main21\')" id="imageoff" name="main21"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
a["main22"]='<a href="javascript:void(0)" onmouseover="changetext(\'1\');changetext2(\'1\',\'main22\')" id="imageoff" name="main22"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
a["main23"]='<a href="javascript:void(0)" onmouseover="changetext(\'2\');changetext2(\'2\',\'main23\')" id="imageoff" name="main23"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
a["main24"]='<a href="javascript:void(0)" onmouseover="changetext(\'3\');changetext2(\'3\',\'main24\')" id="imageoff" name="main24"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
a["main25"]='<a href="javascript:void(0)" onmouseover="changetext(\'4\');changetext2(\'4\',\'main25\')" id="imageoff" name="main25"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
a["main26"]='<a href="javascript:void(0)" onmouseover="changetext(\'5\');changetext2(\'5\',\'main26\')" id="imageoff" name="main26"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
a["main27"]='<a href="javascript:void(0)" onmouseover="changetext(\'6\');changetext2(\'6\',\'main27\')" id="imageoff" name="main27"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';
a["main28"]='<a href="javascript:void(0)" onmouseover="changetext(\'7\');changetext2(\'7\',\'main28\')" id="imageoff" name="main28"><img src="common/spacer.gif" width="10" height="10" border="0" /></a>';


function regenerate(){
  window.location.reload();
}

function regenerate2(){
  if (document.layers){
    appear();
    setTimeout("window.onresize=regenerate",450);
  }
}

function changetext(content){

idis = document.getElementById('imageon').name
document.getElementById('imageon').id = 'imageoff'
document.getElementById(idis).innerHTML = a[idis]



  if (document.all||document.getElementById){
    cross_el=document.getElementById?
    document.getElementById("main"):document.all.main
    cross_el.innerHTML=i[content]

  }
  else if (document.layers){
    document.d1.document.d2.document.write(i[content])
    document.d1.document.d2.document.close()
  }

}

function changetext2(content2, content3){
  if (document.all||document.getElementById){
    cross_el=document.getElementById?
    document.getElementById(content3):document.all.item(content3)
    cross_el.innerHTML=h[content2]

  }
  else if (document.layers){
    document.d1.document.d2.document.write(h[content2])
    document.d1.document.d2.document.close()
  }

}

function appear(){
  document.d1.visibility='show'
}

