<!--
//フラッシュをJava経由で読み込むスクリプト
function showFlash(url,width,height){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+url+'">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">');
	document.write('</embed>');
	document.write('</object>');
}

//大きいバナーイメージ(又はフラッシュ)を定義
//※小さいバナーと同じ数だけ用意してください。
var mainimage = new Array(
	'<a href="http://www.gasthof-timely.com/" target="_blank"><img src="./images/list01.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.paipunokemuri.com/hakuba/hakuba_index.html" target="_blank"><img src="./images/list02.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.avis.ne.jp/~lark/" target="_blank"><img src="./images/list03.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.kamoshika.jp/" target="_blank"><img src="./images/list04.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www31.ocn.ne.jp/~shiroikoya/" target="_blank"><img src="./images/list05.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.hotelshitaka.co.jp/" target="_blank"><img src="./images/list06.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.brocken.jp/" target="_blank"><img src="./images/list07.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.d7.dion.ne.jp/~p_ohno/" target="_blank"><img src="./images/list08.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.i-sks.com/butter/" target="_blank"><img src="./images/list09.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.hotelmoegi.com/" target="_blank"><img src="./images/list10.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www6.ocn.ne.jp/~moncha/" target="_blank"><img src="./images/list11.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.alupu.jp/" target="_blank"><img src="./images/list12.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.mcci.or.jp/www/raicho/" target="_blank"><img src="./images/list13.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.dia.janis.or.jp/~moai/" target="_blank"><img src="./images/list14.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.marchenhouse.co.jp/" target="_blank"><img src="./images/list15.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.janis.or.jp/users/cerin/" target="_blank"><img src="./images/list16.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www7.ocn.ne.jp/~weisshrn/" target="_blank"><img src="./images/list17.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www6.ocn.ne.jp/~shuzanso/" target="_blank"><img src="./images/list18.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www3.ocn.ne.jp/~miyuki1/" target="_blank"><img src="./images/list19.jpg" border="0" style="width: 154px;height: 135px;"></a>');

//小さいバナーイメージ(又はフラッシュ)を定義
//※大きいバナーと同じ数だけ用意してください。
var subimages = new Array(
	'<a href="http://www.gasthof-timely.com/" target="_blank"><img src="./images/list01.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.paipunokemuri.com/hakuba/hakuba_index.html" target="_blank"><img src="./images/list02.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.avis.ne.jp/~lark/" target="_blank"><img src="./images/list03.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.kamoshika.jp/" target="_blank"><img src="./images/list04.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www31.ocn.ne.jp/~shiroikoya/" target="_blank"><img src="./images/list05.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.hotelshitaka.co.jp/" target="_blank"><img src="./images/list06.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.brocken.jp/" target="_blank"><img src="./images/list07.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.d7.dion.ne.jp/~p_ohno/" target="_blank"><img src="./images/list08.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.i-sks.com/butter/" target="_blank"><img src="./images/list09.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.hotelmoegi.com/" target="_blank"><img src="./images/list10.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www6.ocn.ne.jp/~moncha/" target="_blank"><img src="./images/list11.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.alupu.jp/" target="_blank"><img src="./images/list12.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.mcci.or.jp/www/raicho/" target="_blank"><img src="./images/list13.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.dia.janis.or.jp/~moai/" target="_blank"><img src="./images/list14.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.marchenhouse.co.jp/" target="_blank"><img src="./images/list15.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www.janis.or.jp/users/cerin/" target="_blank"><img src="./images/list16.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www7.ocn.ne.jp/~weisshrn/" target="_blank"><img src="./images/list17.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www6.ocn.ne.jp/~shuzanso/" target="_blank"><img src="./images/list18.jpg" border="0" style="width: 154px;height: 135px;"></a>',
	'<a href="http://www3.ocn.ne.jp/~miyuki1/" target="_blank"><img src="./images/list19.jpg" border="0" style="width: 154px;height: 135px;"></a>');


//フラッシュをバナーに組み込む場合は最上段のshowFlash関数を利用します。
//記述方法は下記の通り。※scriptタグの多重定義のみ気をつけてください。
//	'<scr'+'ipt language="javascript" type="text/javascript">showFlash("flashname.swf","width","height");</scr'+'ipt>',

//バナーの数を調べます。
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]);
}

//-->
