/* ==================== TOP用メイン画像ランダム表示 ==================== */
var rd = Math.random();
var img1;

if( rd <= 0.50 ){
	img1 = "header01";
}
else if( rd <= 0.75 ){
	img1 = "header02";
}
else if( rd <= 1 ){
	img1 = "header03";
}

function mainimg1(){
	document.write('<img src="images/' + img1 + '.jpg" width="625" height="120" alt="" usemap="#map2" border="0" />');
}

/* ==================== 切り替え画像 ==================== */
	function changeImage1(){
	    document.g_img.src="images/game/game01.jpg";
	}
	function changeImage2(){
	    document.g_img.src="images/game/game02.jpg";
	}
	function changeImage3(){
	    document.g_img.src="images/game/game03.jpg";
	}
	function changeImage(nm){
		//for (i=1; i < 11; i++){
		//	j = i -1;
		//    document.midashi(j).src='images/yokoku/midashi0' + i + '.gif';
		//}
		if ( nm == 10) {
			document.y_img.src='images/yokoku/yokoku10.jpg';
		}else{
		    document.y_img.src='images/yokoku/yokoku0' + nm + '.jpg';
		}
		//k = nm -1;
		//document.midashi(k).src='images/yokoku/midashi0' + nm + '_on.gif';
	}
	function changeImage_r(rm){
		document.r_img[0].src='images/reach/reach0' + rm + '_ttl.jpg';
		for (i=1; i < 10; i++){
		    document.r_img[i].src='images/reach/reach0' + rm + '_' +  i + '.jpg';
		}
	}
	function changeImage_c(cm){
	    document.c_img.src='images/capture/cap' + cm + '.jpg';
	}

