/* インデックスフラッシュ */

function index() {
 document.write('<object data="swf/index.swf" type="application/x-shockwave-flash" width="800" height="500">');
 document.write('<param name="movie" value="swf/index.swf">');
 document.write('<param name="quality" value="high">');
 document.write('<param name="wmode" value="transparent">');
 document.write('<param name="play" value="true">');
 document.write('<param name="loop" value="true">');
 document.write('<embed pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="swf/index.swf" type="application/x-shockwave-flash" width="800" height="500" quality="best" play="true" loop="true" wmode="transparent"></emded>');
 document.write('<a href="top.html"><img src="image/index.jpg" width="800" height="500"></a>');
 document.write('</object>');
}

/* メインフラッシュ */

function main() {
 document.write('<object data="swf/main.swf" type="application/x-shockwave-flash" width="730" height="400">');
 document.write('<param name="movie" value="swf/main.swf">');
 document.write('<param name="quality" value="high">');
 document.write('<param name="wmode" value="transparent">');
 document.write('<param name="play" value="true">');
 document.write('<param name="loop" value="true">');
 document.write('<embed pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="swf/main.swf" type="application/x-shockwave-flash" width="730" height="400" quality="best" play="true" loop="true" wmode="transparent"></emded>');
 document.write('<img src="image/main.jpg" width="730" height="400"></a>');
 document.write('</object>');
}

//*メニューフラッシュ */

function menu(){
 document.write('<embed height="300" width="180"  pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="http://www.club-eve.com/swf/menu.swf" type="application/x-shockwave-flash" quality="best" play="true" wmode="transparent">');
}

/* プロフィール写真のフェードチェンジ */

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);
  }
