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

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

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


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

OddsFlag = 1;

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

Querys[0] = "<a href='http://scarecrow-inc.jp/ipet.html'><img src='http://inujiten.com/img/pr/adipet.gif' alt='犬のガンに物質特許成分「タヒボ」含有' width='471' height='91' border='0'></a>";
Querys[1] = "<a href='http://scarecrow-inc.jp/index_panfenon.html'><img src='http://inujiten.com/img/pr/pinipet.gif' alt='フランス海岸松ポリフェノールの情報はこちら' width='471' height='91' border='0'></a>";
//Querys[2] = "<img src='../common/images/artwork_top/ground_mother.jpg' width='800' height='532' border='0' alt=''>";
//Querys[3] = "<img src='../common/images/artwork_top/ground_mother.jpg' width='800' height='532' border='0' alt=''>";
//Querys[4] = "<img src='../common/images/artwork_top/ground_mother.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[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 の場合は設定不要）



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

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);
}

