﻿<!--
/*フラッシュを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="/note/note100129.html"><img src="/note/img/100129_top.jpg" width="365px" alt="『クォンタム・ファミリーズ』東浩紀"></a>',
	'<a href="/note/note100121.html"><img src="/note/img/100121_top.jpg" width="365px" alt="『私の家では何も起こらない』恩田陸"></a>',
	'<a href="/note/note100218.html"><img src="/note/img/100218_top.jpg" width="365px" alt="『ボート』ナム・リー"></a>',
	'<a href="/note/note100208.html"><img src="/note/img/100208_top.jpg" width="365px" alt="『マタタビ潔子の猫魂』朱野帰子"></a>',
	'<a href="/note/note100125.html"><img src="/note/img/100125_top.jpg" width="365px" alt="『ブラッド・メリディアン』コーマック・マッカーシー"></a>');

//小さいバナーイメージ(又はフラッシュ)を定義
/*/※大きいバナーと同じ数だけ用意してください。
var subimages = new Array(
	'<img src="./images/image_01_small.jpg" style="width: 160px;height: 80px;">',
	'<img src="./images/image_02_small.jpg" style="width: 160px;height: 80px;">',
	'<img src="./images/image_03_small.jpg" style="width: 160px;height: 80px;">',
	'<img src="./images/image_04_small.jpg" style="width: 160px;height: 80px;">');

//フラッシュをバナーに組み込む場合は最上段のshowFlash関数を利用します。
//記述方法は下記の通り。※scriptタグの多重定義のみ気をつけてください。
//	'<scr'+'ipt language="javascript" type="text/javascript">showFlash("flashname.swf","width","height");</scr'+'ipt>',
*/
//バナーの数を調べます。
var figure = mainimage.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]);
}

//-->
