/*
switch.js
DHTMLによるコンテンツの切替えScript

Notes:
HTML本体で id 指定した要素の内容を動的に切替える。

Usage:
HTMLの要素名が "weddingPhotoAreaJS" の場合、以下の様になる。
*/

var h = new Array();


//以下の配列の内容を希望するものに変更する。
h[0]='<div id="photoframe"><img src="img/cuisine/cuisine_L_001.jpg" /></div>'
h[1]='<div id="photoframe"><img src="img/cuisine/cuisine_L_002.jpg" /></div>'
h[2]='<div id="photoframe"><img src="img/cuisine/cuisine_L_003.jpg" /></div>'
h[3]='<div id="photoframe"><img src="img/cuisine/cuisine_L_004.jpg" /></div>'
h[4]='<div id="photoframe"><img src="img/cuisine/cuisine_L_005.jpg" /></div>'
h[5]='<div id="photoframe"><img src="img/cuisine/cuisine_L_006.jpg" /></div>'
h[6]='<div id="photoframe"><img src="img/cuisine/cuisine_L_007.jpg" /></div>'



function regenerate(){
  window.location.reload();
}

function regenerate2(){
  if (document.layers){
    appear();
    setTimeout("window.onresize=regenerate",450);
  }
}

function changetext(whichcontent){
  if (document.all||document.getElementById){
    cross_el=document.getElementById?
    document.getElementById("weddingPhotoAreaJS"):document.all.weddingPhotoAreaJS	//ドキュメント要素のIDがweddingPhotoAreaJS の場合。その他の時は適宜変更する。
    cross_el.innerHTML=whichcontent
  }
  else if (document.layers){
    document.d1.document.d2.document.write(whichcontent)
    document.d1.document.d2.document.close()
  }
}

function appear(){
  document.d1.visibility='show'
}

