//ランダム出力スクリプト Ver.1.00
//2006/07/02 Programed By Rikiya Takazawa

Querys = new Array();
Odds = new Array ();

//設定ここから-------------------------------------------


//確率設定（有=0、無=1） 

OddsFlag = 0;

//出力ソースをインデックス数0から順に設定

Querys[0] = "<img src='http://www.soshiro.com/img/banner_top01.jpg' width='736' height='208' alt='あなたのいるところから光り輝く　鈴木惣士郎'>";
Querys[1] = "<img src='http://www.soshiro.com/img/banner_top02.jpg' width='736' height='208' alt='リーダーをつくるリーダーを、つくる　鈴木惣士郎'>";
Querys[2] = "<img src='http://www.soshiro.com/img/banner_top03.jpg' width='736' height='208' alt='あなたのこころが、いつも、いつも、いつも、凪いでいますように　鈴木惣士郎'>";
//Querys[3] = "<img src='../common/images/artwork_top/girl.jpg' width='800' height='532' border='0' alt=''>";
//Querys[4] = "<img src='../common/images/artwork_top/ground_father.jpg' width='800' height='532' border='0' alt=''>";
//Querys[5] = "<img src='../common/images/artwork_top/ground_mother.jpg' width='800' height='532' border='0' alt=''>";
//Querys[6] = "<img src='../common/images/artwork_top/heaven.jpg' width='800' height='532' border='0' alt=''>";
//Querys[7] = "<img src='../common/images/artwork_top/in_the_whole_world.jpg' width='800' height='532' border='0' alt=''>";
//Querys[8] = "<img src='../common/images/artwork_top/jump.jpg' width='800' height='532' border='0' alt=''>";
//Querys[9] = "<img src='../common/images/artwork_top/light_dark.jpg' width='800' height='532' border='0' alt=''>";
//Querys[10] = "<img src='../common/images/artwork_top/make_the_most.jpg' width='800' height='532' border='0' alt=''>";
//Querys[11] = "<img src='../common/images/artwork_top/rave.jpg' width='800' height='532' border='0' alt=''>";
//Querys[12] = "<img src='../common/images/artwork_top/stop_the_time.jpg' width='800' height='532' border='0' alt=''>";
//Querys[13] = "<img src='../common/images/artwork_top/like_you.jpg' width='800' height='532' border='0' alt=''>";
//Querys[14] = "<img src='../common/images/artwork_top/go_fast.jpg' width='800' height='532' border='0' alt=''>";
//Querys[15] = "<img src='../common/images/artwork_top/with_you.jpg' width='800' height='532' border='0' alt=''>";
//Querys[16] = "<img src='../common/images/artwork_top/dandelion.jpg' width='800' height='532' border='0' alt=''>";
//Querys[17] = "<img src='../common/images/artwork_top/nakid_boy.jpg' width='800' height='532' border='0' alt=''>";
//Querys[18] = "<img src='../common/images/banner_index/.jpg' width='800' height='532' border='0' alt=''>";
//Querys[19] = "<img src='../common/images/banner_index/.jpg' width='800' height='532' border='0' alt=''>";
//Querys[20] = "<img src='../common/images/banner_index/.jpg' width='800' height='532' border='0' alt=''>";
//Querys[21] = "<img src='../common/images/banner_index/.jpg' width='800' height='532' border='0' alt=''>";


//出力確率を上記出力ソースのインデックス数に合わせて設定（OddsFlag = 0 の場合は設定不要）

Odds[0] = 33.33;
Odds[1] = 33.33;
Odds[2] = 33.33;


//設定ここまで　以下編集禁止-------------------------------------------

if(OddsFlag == "0"){
	var Result = Math.random() * 100;
	var n = 0;
	for(i = 0; i < Odds.length; i++){
		n += Odds[i]; 
		if(Result < n){
			Loadimg = Querys[i];
			document.write(Loadimg);
			break;
		}
	}
}else{
	var i = Math.floor(Math.random() * Querys.length);
	var Loadimg = Querys[i];
	document.write(Loadimg);
}
