/*------------------------------------------------------------
 * rollover.js Version 1.1
 * Author : Kyosuke Nakamura (http://kyosuke.jp/)
 * 使用ライブラリ: jQuery
 *------------------------------------------------------------
 * 特定のクラス名がついたimg要素にロールオーバーイメージを設定します。
/*------------------------------------------------------------*/

$(document).ready(function(){
	var conf = {
		className : 'btn',
		postfix : '_on'
	};
	$('img.'+conf.className).hover(function(){
		this.originalSrc = this.src;
		this.src = this.originalSrc.replace(/(\.gif|\.jpg|\.png)/, conf.postfix+"$1");
	},function(){
		this.src = this.originalSrc;
	});
});

