/*______________________________________

	JavaScript file
	[copyright] 12.2005 
______________________________________*/

function Put_random_img(){
	//それぞれ5つの画像につき、3点の画像をランダムに表示する
	
	img1 = new Array();
	img2 = new Array();
	img3 = new Array();
	img4 = new Array();
	img5 = new Array();

	// 画像のアドレスの設定
	img1[0] = "img/top/random/1_1.jpg";
	img1[1] = "img/top/random/1_2.jpg";
	img1[2] = "img/top/random/1_3.jpg";
	
	img2[0] = "img/top/random/2_1.jpg";
	img2[1] = "img/top/random/2_2.jpg";
	img2[2] = "img/top/random/2_3.jpg";
	
	img3[0] = "img/top/random/3_1.jpg";
	img3[1] = "img/top/random/3_2.jpg";
	img3[2] = "img/top/random/3_3.jpg";
	
	img4[0] = "img/top/random/4_1.jpg";
	img4[1] = "img/top/random/4_2.jpg";
	img4[2] = "img/top/random/4_3.jpg";
	
	img5[0] = "img/top/random/5_1.jpg";
	img5[1] = "img/top/random/5_2.jpg";
	img5[2] = "img/top/random/5_3.jpg";
	
	//変数をランダムに設定
	n1 = Math.floor(Math.random()*img1.length);
	n2 = Math.floor(Math.random()*img2.length);
	n3 = Math.floor(Math.random()*img3.length);
	n4 = Math.floor(Math.random()*img4.length);
	n5 = Math.floor(Math.random()*img5.length);

	//HTMLタグの書き出し
	document.write("<img src='"+img1[n1]+"' class='m-r50' width='80' height='80' alt=''><img src='"+img2[n2]+"' class='m-r50' width='80' height='80' alt=''><img src='"+img3[n3]+"' class='m-r50' width='80' height='80' alt=''><img src='"+img4[n4]+"' class='m-r50' width='80' height='80' alt=''><img src='"+img5[n5]+"' width='80' height='80' alt=''>");

}

