/* その他ページ用フラッシュ */

function header(){
 document.write('<embed pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="http://oushitu.ok-g.net/swf/top2.swf" type="application/x-shockwave-flash" width="780" height="120" quality="best" play="true" wmode="transparent"></emded>');
}

/* トップページ用フラッシュ */

function top(){
 document.write('<embed pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="http://oushitu.ok-g.net/swf/top.swf" type="application/x-shockwave-flash" width="780" height="500" quality="best" play="true" wmode="transparent"></emded>');
}

/* システムフラッシュ */

function system(){
 document.write('<embed pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="http://oushitu.ok-g.net/swf/system.swf" type="application/x-shockwave-flash" width="780" height="250" quality="best" play="true" wmode="transparent"></emded>');
}

/* システムフラッシュ */

function header_top(){
 document.write('<embed pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="http://oushitu.ok-g.net/swf/header_top.swf" type="application/x-shockwave-flash" width="780" height="200" quality="best" play="true" wmode="transparent"></emded>');
}

/* テスト */

function test(){
 document.write('<embed pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="http://oushitu.ok-g.net/swf/TiltViewer.swf" type="application/x-shockwave-flash" width="100%" height="100%" quality="best" play="true" wmode="transparent"></emded>');
}



/* グラビア写真のフェードチェンジ */

var fade_speed = 2000;
var fade_duration = 8;
var image = new Array();

image[0] = 'option16.jpg';
image[1] = 'option17.jpg';
image[2] = 'option18.jpg';
image[3] = 'option19.jpg';
image[4] = 'option20.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);
  }