<!--

//大きいバナーイメージ(又はフラッシュ)を定義
//※小さいバナーと同じ数だけ用意してください。
var mainimage = new Array(
	'<img src="image_top/randam1.jpg" style="width: 900px;height: 285px;">',
	'<img src="image_top/randam2.jpg" style="width: 900px;height: 285px;">',
	'<img src="image_top/randam3.jpg" style="width: 900px;height: 285px;">');

//小さいバナーイメージ(又はフラッシュ)を定義
//※大きいバナーと同じ数だけ用意してください。
var subimages = new Array(
	'<img src="image_top/randam1s.jpg" style="width: 900px;height: 285px;">',
	'<img src="image_top/randam2s.jpg" style="width: 900px;height: 285px;">',
	'<img src="image_top/randam3s.jpg" style="width: 900px;height: 285px;">');


//バナーの数を調べます。
var figure = subimages.length;

for (i=0; i<100; i++) //　100はシャッフルする回数
{
	n1 = Math.floor(Math.random() * figure);
	n2 = Math.floor(Math.random() * figure);
	n = subimages[n1];
	m = mainimage[n1]
	subimages[n1] = subimages[n2];
	mainimage[n1] = mainimage[n2];
	subimages[n2] = n;
	mainimage[n2] = m;
}

//小さいバナーイメージを呼び出す関数
function putsubimage(cnt){
	document.write(subimages[cnt]);
}

//大きいバナーイメージを呼び出す関数
function putmainimage(cnt){
	document.write(mainimage[cnt]);
}

//-->

