<!--
//フラッシュを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(
	'<scr'+'ipt type="text/javascript">showFlash("images/image_01_large.swf",490,200);</scr'+'ipt>',
	'<img src="images/image_02_large.jpg" style="width: 490px;height: 200px;">',
	'<img src="images/image_03_large.jpg" style="width: 490px;height: 200px;">',
	'<img src="images/image_04_large.jpg" style="width: 490px;height: 200px;">',
	'<img src="images/image_05_large.jpg" style="width: 490px;height: 200px;">',
	'<img src="images/image_06_large.jpg" style="width: 490px;height: 200px;">',
	'<img src="images/image_07_large.jpg" style="width: 490px;height: 200px;">',
	'<img src="images/image_08_large.jpg" style="width: 490px;height: 200px;">',
	'<img src="images/image_09_large.jpg" style="width: 490px;height: 200px;">',
	'<img src="images/image_10_large.jpg" style="width: 490px;height: 200px;">',
	'<img src="images/image_11_large.jpg" style="width: 490px;height: 200px;">',
	'<img src="images/image_12_large.jpg" style="width: 490px;height: 200px;">',
	'<img src="images/image_13_large.jpg" style="width: 490px;height: 200px;">');

//小さいバナーイメージ(又はフラッシュ)を定義
//※大きいバナーと同じ数だけ用意。
var subimages = new Array(
	'<th><a href="career/higashihp.html"><img src="./images/sbanners01.png" style="width: 50px;height: 50px;" alt="淡路市 常勤医・非常勤医募集"></a></th><td><a href="career/higashihp.html">常勤・非常勤医募集<br>淡路市・200床<hr style="border-style:solid">内科・外科・小児科</a><br><br><\/td>',

	'<th><a href="career/yujinkaihp.html"><img src="./images/sbanners02.png" style="width: 50px;height: 50px;" alt="泉佐野市 常勤医・非常勤医募集"></a></th><td><a href="career/yujinkaihp.html">常勤・非常勤医募集<br>泉佐野市・273床<hr style="border-style:solid">内科・外科・整形外科</a><br><br><\/td>',

	'<th><a href="career/oouchihp.html"><img src="./images/sbanners03.png" style="width: 50px;height: 50px;" alt="足立区 常勤医・非常勤医募集"></a></th><td><a href="career/oouchihp.html">常勤・非常勤医募集<br>足立区・414床<hr style="border-style:solid">内科・精神科</a><br><br><\/td>',

	'<th><a href="career/anonymous_osaka27014.html"><img src="./images/sbanners04.png" style="width: 50px;height: 50px;" alt="大阪府 管理者募集"></a></th><td><a href="career/anonymous_osaka27014.html">管理者募集<br>大阪府・約100床<hr style="border-style:solid">院長・副院長</a><br><br><\/td>',

	'<th><a href="career/yamaguchihp.html"><img src="./images/sbanners05.png" style="width: 50px;height: 50px;" alt="岩国市 常勤医募集"></a></th><td><a href="career/yamaguchihp.html">常勤医募集<br>岩国市・150床<hr style="border-style:solid">内科・在宅医療</a><br><br><\/td>',

	'<th><a href="career/inouehp.html"><img src="./images/sbanners06.png" style="width: 50px;height: 50px;" alt="足立区 常勤・非常勤医募集"></a></th><td><a href="career/inouehp.html">常勤・非常勤医募集<br>足立区・66床<hr style="border-style:solid">内科・乳腺外科・整形外科</a><br><br><\/td>',

	'<th><a href="career/oharahp.html"><img src="./images/sbanners07.png" style="width: 50px;height: 50px;" alt="尼崎市 常勤医募集"></a></th><td><a href="career/oharahp.html">常勤医募集<br>尼崎市・72床<hr style="border-style:solid">内科・外科</a><br><br><\/td>',

	'<th><a href="career/shinmidorihp.html"><img src="./images/sbanners08.png" style="width: 50px;height: 50px;" alt="横浜市 常勤・非常勤医募集"></a></th><td><a href="career/shinmidorihp.html">常勤医募集<br>横浜市・199床<hr style="border-style:solid">内科・麻酔科・放射線科</a><br><br><\/td>',

	'<th><a href="career/matsuihp.html"><img src="./images/sbanners09.png" style="width: 50px;height: 50px;" alt="大田区 常勤医募集"></a></th><td><a href="career/matsuihp.html">常勤医募集<br>大田区・144床<hr style="border-style:solid">呼吸器科・腎臓内科・整形外科</a><br><br><\/td>',

	'<th><a href="career/myodanihp.html"><img src="./images/sbanners10.png" style="width: 50px;height: 50px;" alt="神戸市 常勤医募集"></a></th><td><a href="career/myodanihp.html">常勤医募集<br>神戸市・112床<hr style="border-style:solid">内科・脳神経外科・整形外科</a><br><br><\/td>',

	'<th><a href="career/hamaderahp.html"><img src="./images/sbanners11.png" style="width: 50px;height: 50px;" alt="堺市 常勤・非常勤医募集"></a></th><td><a href="career/hamaderahp.html">常勤・非常勤医募集<br>堺市・107床<hr style="border-style:solid">内科・在宅医療</a><br><br><\/td>',

	'<th><a href="career/mitohp.html"><img src="./images/sbanners12.png" style="width: 50px;height: 50px;" alt="東大阪市 常勤・非常勤医募集"></a></th><td><a href="career/mitohp.html">常勤・非常勤医募集<br>東大阪市・107床<hr style="border-style:solid">内科・整形外科・放射線科</a><br><br><\/td>',

	'<th><a href="career/setagayahp.html"><img src="./images/sbanners13.png" style="width: 50px;height: 50px;" alt="世田谷区 常勤・非常勤医募集"></a></th><td><a href="career/setagayahp.html">常勤・非常勤医募集<br>世田谷区・200床<hr style="border-style:solid">内科・麻酔科</a><br><br><\/td>');

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

//-->

