//トップページ ランダム画像


//画像を設定 
var mainImg = new Array(
	'<p class="mv"><img src="../images/home/mv_01.jpg" alt="Q-R code labels are used to manage sample at KCC" width="540" height="240" /></p>',
	'<p class="mv"><img src="../images/home/mv_02.jpg" alt="Core Analysis School, Introductory Course　Non-destructive analysis of Core Samples by X-ray CT scanner" width="540" height="240" /></p>',
	'<p class="mv"><img src="../images/home/mv_03.jpg" alt="Core Analysis School, Advanced Course　Sr isotope measurements in carbonate samples by TIMS" width="540" height="240" /></p>',
	'<p class="mv"><img src="../images/home/mv_04.jpg" alt="Redistributed Legacy cores in Reefers #2-3" width="540" height="240" /></p>',
	'<p class="mv"><img src="../images/home/mv_05.jpg" alt="Deep Sea Drilling Vessel &quot;CHIKYU&quot; in Kochi newport on February 14, 2008" width="540" height="240" /></p>',
	'<p class="mv"><img src="../images/home/mv_06.jpg" alt="DSDP/ODP/IODP Core Curation: Sample requests are now being accepted on website" width="540" height="240" /></p>');


//読み込まれた画像の数を調べる
var figure = mainImg.length;

for (i=0; i<100; i++) //　100はシャッフルする回数
{
	n1 = Math.floor(Math.random() * figure);
	n2 = Math.floor(Math.random() * figure);
	n = mainImg[n1];
	m = mainImg[n2]
	mainImg[n1] = mainImg[n2];
	mainImg[n2] = n;

}

//バナーを呼び出す関数
function putImg(cnt){
	document.write(mainImg[cnt]);
}


