  <!--//
  // Copyright    : H.Yamashita
  // URL          : http://www2s.biglobe.ne.jp/~Hiro/
  // Notice       : いわゆるフリー素材です。但し、営利目的以外で使用して下さい
  //-->
  <!-- JavaScript
	//
	// rnd_graphics () : ランダムに違う画像を表示
	// Version 0.01		1997. 9.20.
	//
	///////////////////////////////////////////
	// ※ユーザー設定箇所は 2 箇所あります。 //
	///////////////////////////////////////////
	function rnd_graphics () {
		var	rnd = 0;		// 乱数格納用
		//////////////////////////////////////////////////////////
		// ***** ここからユーザーの設定箇所 (1) *****
		//
		// １． 画像データ数の設定
		//      graphic_dat_max に使用するデータの数を入力します。
		//
		var	graphic_dat_max = 5;
		//
		// ***** ここまでユーザーの設定箇所 (1) *****
		//////////////////////////////////////////////////////////
		var	graphic_dat	= new Array(graphic_dat_max);
		var	graphic_width	= new Array(graphic_dat_max);
		var	graphic_height	= new Array(graphic_dat_max);
		//////////////////////////////////////////////////////////
		// ***** ここからユーザーの設定箇所 (2) *****
		//
		// １． 画像ファイル設定
		//      画像ファイルを設定します。
		//          graphic_dat[?]	: 画像ファイル名
		//          graphic_width[?]	: 画像の幅   (単位 : dot)
		//          graphic_height[?]	: 画像の高さ (単位 : dot)
		//      をそれぞれ記入します。
		//      [?] の ? には 0 〜 (graphic_dat_max - 1) 
		//      までの数値が入ります。例えば graphic_dat_max = 5
		//      なら、 [0] 〜 [4] までの変数を設定します。
		//
		// 1 つ目
		graphic_dat[0]		= "img/main_image01.jpg";
		graphic_width[0]	= "469";
		graphic_height[0]	= "390";
		// 2 つ目
		graphic_dat[1]		= "img/main_image02.jpg";
		graphic_width[1]	= "469";
		graphic_height[1]	= "390";
		// 3 つ目
		graphic_dat[2]		= "img/main_image03.jpg";
		graphic_width[2]	= "469";
		graphic_height[2]	= "390";
		// 4 つ目
		graphic_dat[3]		= "img/main_image04.jpg";
		graphic_width[3]	= "469";
		graphic_height[3]	= "390";
		// 5 つ目
		graphic_dat[4]		= "img/main_image05.jpg";
		graphic_width[4]	= "469";
		graphic_height[4]	= "390";
		//
		// ***** ここまでユーザーの設定箇所 (2) *****
		//////////////////////////////////////////////////////////
		//
		// 乱数発生
		//
		rnd = Math.floor(Math.random() * graphic_dat_max);
		//
		// 描画処理
		//
		if ((graphic_width[rnd] == "") || (graphic_height[rnd] == "")) {
			document.write('<IMG SRC="' + graphic_dat[rnd] + '">');
		}
		else if (graphic_dat[rnd] != "") {
			document.write('<IMG SRC="' + graphic_dat[rnd] + '" WIDTH=' + graphic_width[rnd] + " HEIGHT=" + graphic_height[rnd] + ">");
		}
	}
//-->

