<!--
//フラッシュを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=8,0,0,0" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+url+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	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+'" wmode="transparent">');
	document.write('</embed>');
	document.write('</object>');
}

//バナーイメージ(又はフラッシュ)を定義
//'<scr'+'ipt type="text/javascript">showFlash("/images/yaho3.swf",220,220);</scr'+'ipt>',

var mainimage = new Array(
'<scr'+'ipt type="text/javascript">showFlash("/images/yaho3_cs3.swf",220,220);</scr'+'ipt>',
'<scr'+'ipt type="text/javascript">showFlash("/images/rand_sotsugyou2009.swf",220,220);</scr'+'ipt>','<a href="/juken/cost/ecsupport/index.html"><img src="/images/rand_ganbare.jpg" style="width: 220px;height: 220px;"></a>');

//フラッシュをバナーに組み込む場合は最上段の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);
	m = mainimage[n1]
	mainimage[n1] = mainimage[n2];
	mainimage[n2] = m;
}


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

-->
