<!--
//フラッシュを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 subimages = new Array(
	'<a href="jp/products/engine.html#spm"><img src="jp/img/home/topbnr_spm.gif" alt="SPM（軸受監視装置）" class="fade" /></a>',
	'<a href="jp/products/engine.html#mip"><img src="jp/img/home/topbnr_mip2000.gif" alt="エンジンアナライザー（MIP2000）" class="fade" /></a>',
	'<a href="jp/products/electrical.html"><img src="jp/img/home/topbnr_marinetac.gif" alt="エアープラズマ切断・手溶接兼用機（マリンタック）" class="fade" /></a>',
	'<a href="jp/products/fireproof.html"><img src="jp/img/home/topbnr_musashi.jpg" alt="ミスト消火器「- New 武蔵 -」" class="fade" /></a>',
	'<a href="jp/products/body.html"><img src="jp/img/home/topbnr_standing.jpg" alt="自立型メンテナンス足場" class="fade" /></a>',
	'<a href="jp/products/engine.html"><img src="jp/img/home/topbnr_totom.jpg" alt="軸馬力計（TOTOM）" class="fade" /></a>',
	'<a href="jp/products/engine.html#checker"><img src="jp/img/home/topbnr_bearingchecker.jpg" alt="ベアリングチェッカー" class="fade" /></a>',
	'<a href="jp/products/engine.html#cylinder"><img src="jp/img/home/topbnr_cylinder-oil.jpg" alt="シリンダ油ドレン簡易測定装置" class="fade" /></a>',
	'<a href="jp/products/equipment.html"><img src="jp/img/home/topbnr_immersion-suit.jpg" alt="イマーションスーツ" class="fade" /></a>',
	'<a href="jp/products/equipment.html#eebd"><img src="jp/img/home/topbnr_eebd.jpg" alt="EEBD（非常脱出用呼吸具）" class="fade" /></a>',
	'<a href="jp/products/ground_eco_purify.html"><img src="jp/img/home/topbnr_ews100.jpg" alt="排水浄化システム" class="fade" /></a>',
	'<a href="jp/products/xray.html"><img src="jp/img/home/topbnr_xray.jpg" alt="軟Ｘ線照射装置" class="fade" /></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];
	subimages[n1] = subimages[n2];
	subimages[n2] = n;
}

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


//-->
