/**
 * =====================================
 * 画像のロールオーバー
 *
 * prototype.jsと一緒に使用する
 * =====================================
 */

// 基本設定
overImgClassName = 'Swap';	// クラス名を指定
overImgPostfix = '_on';		// ロールオーバー時の画像名（後ろに付く文字）

// スクリプト
Event.observe(window, 'load', RN_setMouseOverImages, false);

function RN_setMouseOverImages() {
	var btns = $A(document.getElementsByClassName("Swap"));
	btns.each(function (node){
		node.imgsrc = node.src;
		node.imgsrc_over = node.src.replace('.gif', '_on.gif').replace('.jpg', '_on.jpg');
		node.onmouseover = function() { this.src = this.imgsrc_over; };
		node.onmouseout = function() { this.src = this.imgsrc; };
	});
}


