var subimages = new Array(
		'<a href="http://www.komadame-aneshhu.com/" target="_blank"><img src="http://www.cityheaven.net/img/commtpl/hitozuma-fuzoku/images/header/komadamu.jpg" /></a>',
	
		'<a href="http://www.love-oku.jp/pc/sogo.html" target="_blank"><img src="http://www.cityheaven.net/img/commtpl/hitozuma-fuzoku/images/header/loveoku.gif" /></a>');

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];
	subimages[n1] = subimages[n2];
	subimages[n2] = n;
}

//バナーイメージを呼び出す関数
function putsubimage(cnt){
	document.write(subimages[cnt]);
}
//-->

