<!--

//フラッシュをJava経由で読み込むスクリプト
function showFlash(url,width,height,image){
//	document.write('<OBJECT ID="FlashID" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="'+width+'" HEIGHT="'+height+'">');
//	document.write('<PARAM NAME="movie" VALUE="'+url+'">');
//	document.write('<PARAM NAME="quality" VALUE="high">');
//	document.write('<PARAM NAME="wmode" VALUE="Opaque">');
//	document.write('<PARAM NAME="swfversion" VALUE="6.0.65.0">');
//	document.write('<PARAM NAME="expressinstall" VALUE="./Scripts/expressInstall.swf">');
//	document.write('<PARAM NAME="BGCOLOR" VALUE="#000000" />');
//	document.write('<!-- 次のオブジェクトタグは IE 以外のブラウザーで使用するためのものです。IE では IECC を使用して非表示にします。 -->');
//	document.write('<!--[if !IE]>-->');
//	document.write('<OBJECT TYPE="application/x-shockwave-flash" DATA="'+url+'" WIDTH="'+width+'" HEIGHT="'+height+'">');
//	document.write('<!--<![endif]-->');
//	document.write('<img src="'+image+'" alt="Alternative content rules!" />');
//	document.write('<!--[if !IE]>-->');
//	document.write('</OBJECT>');
//	document.write('<!--<![endif]-->');
//	document.write('</OBJECT>');	

	document.write('<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+url+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="opaque" />');
	document.write('<param name="swfversion" value="8.0.35.0" />');
	document.write('<!-- このパラメータータグにより、Flash Player 6.0 または 6.5 以降を使用して、Flash Player の最新バージョンをダウンロードするようメッセージが表示されます。ユーザーにメッセージを表示させないようにする場合はパラメータータグを削除します。 -->');
	document.write('<param name="expressinstall" value="Scripts/expressInstall.swf" />');
	document.write('<!-- 次のオブジェクトタグは IE 以外のブラウザーで使用するためのものです。IE では IECC を使用して非表示にします。 -->');
	document.write('<!--[if !IE]>-->');
	document.write('<object type="application/x-shockwave-flash" data="'+url+'" width="'+width+'" height="'+height+'">');
	document.write('<!--<![endif]-->');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="opaque" />');
	document.write('<param name="swfversion" value="8.0.35.0" />');
	document.write('<param name="expressinstall" value="Scripts/expressInstall.swf" />');
	document.write('<!-- ブラウザーには、Flash Player 6.0 以前のバージョンを使用して次の代替コンテンツが表示されます。 -->');
	document.write('<img src="'+image+'" alt="" width="'+width+'" height="'+height+'" />');
	document.write('<!--[if !IE]>-->');
	document.write('</object>');
	document.write('<!--<![endif]-->');
	document.write('</object>');
	document.write('<script type="text/javascript">');
	document.write('swfobject.registerObject("FlashID");');
	document.write('</script>');
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}

//大きいバナーイメージ(又はフラッシュ)を定義

var mainimage = new Array(
	'<scr'+'ipt type="text/javascript">showFlash("./images/index/top01.swf",500,338,"./images/index/top01.jpg");</scr'+'ipt>',
	'<scr'+'ipt type="text/javascript">showFlash("./images/index/top02.swf",500,338,"./images/index/top02.jpg");</scr'+'ipt>',
	'<img src="./images/index/top03.jpg" style="width: 500px;height: 338px;">',
	'<scr'+'ipt type="text/javascript">showFlash("./images/index/top04.swf",500,338,"./images/index/top02.jpg");</scr'+'ipt>',
	'<scr'+'ipt type="text/javascript">showFlash("./images/index/top04.swf",500,338,"./images/index/top02.jpg");</scr'+'ipt>',
	'<scr'+'ipt type="text/javascript">showFlash("./images/index/top04.swf",500,338,"./images/index/top02.jpg");</scr'+'ipt>');

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

//バナーの数を調べます。
var figure = mainimage.length;

for (i=0; i<100; i++) //　100はシャッフルする回数
{
	n1 = Math.floor(Math.random() * figure);
	n2 = Math.floor(Math.random() * figure);
	m = mainimage[n1]
	mainimage[n1] = mainimage[n2];
	mainimage[n2] = m;
}

//大きいバナーイメージを呼び出す関数
function putmainimage(cnt){
	document.write(mainimage[cnt]);
}

//-->

