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

//

OddsFlag = 0;

Querys[0] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc01.jpg";
Querys[1] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc02.jpg";
Querys[2] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc03.jpg";
Querys[3] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc04.jpg";
Querys[4] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc05.jpg";
Querys[5] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc06.jpg";
Querys[6] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc07.jpg";
Querys[7] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc08.jpg";
Querys[8] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc09.jpg";
Querys[9] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc10.jpg";
Querys[10] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc11.jpg";
Querys[11] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_aw01.jpg";
Querys[12] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_aw02.jpg";
Querys[13] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_aw03.jpg";
Querys[14] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_aw04.jpg";
Querys[15] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_uc12.jpg";
Querys[16] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_aw05.jpg";
Querys[17] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_aw06.jpg";
Querys[18] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_aw07.jpg";
Querys[19] = "http://image.b-ch.com/feat/gundam-unicorn/shared/img/bg_aw08.jpg";

Odds[0] = 5;
Odds[1] = 5;
Odds[2] = 5;
Odds[3] = 5;
Odds[4] = 5;
Odds[5] = 5;
Odds[6] = 5;
Odds[7] = 5;
Odds[8] = 5;
Odds[9] = 5;
Odds[10] = 5;
Odds[11] = 5;
Odds[12] = 5;
Odds[13] = 5;
Odds[14] = 5;
Odds[15] = 5;
Odds[16] = 5;
Odds[17] = 5;
Odds[18] = 5;
Odds[19] = 5;


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('<style type="text/css">#index{ background-image:url('+Loadimg+'); }</style>');
			break;
		}
	}
}else{
	var i = Math.floor(Math.random() * Querys.length);
	var Loadimg = Querys[i];
	document.write('<style type="text/css">#index{ background-image:url('+Loadimg+'); }</style>');
}



