/* メニュ用フラッシュ*/

function menuFlash(){
 document.write('<embed pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="http://www.club-diana1.jp/swf/menu01.swf" type="application/x-shockwave-flash" width="450" height="90" quality="best" play="true" wmode="transparent"></emded>');
}

/* トップ用フラッシュ*/

function topFlash(){
 document.write('<embed pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.club-diana1.jp/swf/top.swf" type="application/x-shockwave-flash" width="880" height="270" quality="high"></emded>');
}

/* インデックス用フラッシュ*/

function indexFlash(){
 document.write('<embed pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="http://www.club-diana1.jp/swf/index2.swf" type="application/x-shockwave-flash" width="750" height="423" quality="best" play="true" wmode="transparent"></emded>');
}

/* プロフィール写真のフェードチェンジ */

var fade_speed = 3000;
var fade_duration = 8;
var image = new Array();

image[0] = 'option2.jpg';
image[1] = 'option3.jpg';
image[2] = 'option4.jpg';

var t;
var j = 0;
var p = image.length;
var pre_load = new Array();
for (i = 0; i < p; i++) {
  pre_load[i] = new Image();
  pre_load[i].src = image[i];
}
function start_fade() {
  if (document.all) {
    document.images.SlideShow.style.filter="blendTrans(duration=fade_duration)";
    document.images.SlideShow.filters.blendTrans.Apply();
  }
  document.images.SlideShow.src = pre_load[j].src;
  if (document.all) {
    document.images.SlideShow.filters.blendTrans.Play();
  }
  j = j + 1;
  if (j > (p - 1)) j = 0;
    t = setTimeout('start_fade()', fade_speed);
  }