// 画像・URLリストを配列で作る
var imglist = [
	[ "./images/top/rnc-500-w170.jpg", "電気自動車（EV）急速充電器用の直流地絡出器", "./news/20101216_rnc-500.html" ] ,
	[ "./images/top/ehl-2gy-01-1-170.jpg", "防災面にも使用可能な薄型ヘルメットライト", "./products/led.html#led_ehl" ] ,
	[ "./images/top/ewl-2_option-170.jpg", "約5時間使用可能な充電式LEDライト", "./products/led.html#led_ewl" ] ,
	[ "./images/top/earth_hook-h-170.jpg", "狭い場所でも使いやすいアースフック", "./products/hook.html" ] ,
	[ "./images/top/ivj-2-170.jpg", "架線電圧記録装置", "./products/measure.html#ivj-2" ] ,
	[ "./images/top/ipr-1_body-170.jpg", "A種接地が補助極1本で接地抵抗測定", "./products/detail/ipr-1.html" ] ,
	[ "./images/top/imr-80-170.jpg", "漏洩電流と基本波成分を同時に計測できます", "./products/measure.html#imr-80" ] ,
	[ "./images//top/hte-610-170-02.jpg", "コードの上から検電可能！HTE-610型検電器", "./products/kenden.html#kenden_teiatu" ] //注
];

// ランダムに1つ選んで表示する関数
function RandomImageLink() {
	// どれか１つ選ぶ
	var selectnum = Math.floor(Math.random() * imglist.length);
	// 画像とリンクを生成
	var output = 
		'<a href="' + imglist[selectnum][2] + '">' +
		'<img src="' + imglist[selectnum][0] + '"' +
		' alt="' + imglist[selectnum][1] + '"><br>' +
		imglist[selectnum][1] + '</a>';
	// 生成したHTMLを出力
	document.write(output);
}

