jQuery(function(){
								
/***index******************************/

	// regist input
	$("#sub td.button input")
		.hover(
			function () {
				$(this).attr("src", 'img/index/button_r.gif');
			},
			function () {
				$(this).attr("src", 'img/index/button.gif');
			}
		)
	;	
	
	// subsize img
	$("body#subsize #contents p.button img")
		.hover(
			function () {
				$(this).attr("src", 'img/subsize/back_button_r.gif');
			},
			function () {
				$(this).attr("src", 'img/subsize/back_button.gif');
			}
		)
	;	
	
	// subsize img
	$("body.contact #contents #frame table td input")
		.hover(
			function () {
				$(this).attr("src", 'img/subsize/contact_button_r.gif');
			},
			function () {
				$(this).attr("src", 'img/subsize/contact_button.gif');
			}
		)
	;	
	
	// subsize img
	$("body.contact #contents #frame table td.back img")
		.hover(
			function () {
				$(this).attr("src", 'img/subsize/back_button_r.gif');
			},
			function () {
				$(this).attr("src", 'img/subsize/back_button.gif');
			}
		)
	;	
	
	//--------------------------------------------------------------------------------
	// ホバー関連の処理
	//--------------------------------------------------------------------------------
	
	
	//IE6外の場合
	$(".hover")
		.hover(
			function () {
				//透過対象の画像でない場合
				if ($(this).attr("src").match(/blank.gif/) == null) {
					$(this).attr("src", $(this).attr("src").replace(/\/on|off\/(.*?\.(:?gif|jpg|png))/, 'on/$1'));
				}
			},
			function () {
				//透過対象の画像でない場合
				if ($(this).attr("src").match(/blank.gif/) == null) {
					$(this).attr("src", $(this).attr("src").replace(/\/on|off\/(.*?\.gif|jpg|png)/, '/off$1'));
				}
			}
		)
	;	
	
	//IE6対応
	$(".subBlock h3 a img")
		.hover(
			function () {
				$(this).attr('src', $(this).attr('src').replace('/blank.gif', '/on/master_info_btn.png'));
			},
			function () {
				$(this).attr('src', $(this).attr('src').replace('/blank.gif', '/off/master_info_btn.png'));
			}
		)
	;
	
	
	// regist input
	$("#registForm p.registBtn input")
		.hover(
			function () {
				$(this).attr("src", 'img/index/on/regist_btn.png');
			},
			function () {
				$(this).attr("src", 'img/index/off/regist_btn.png');
			}
		)
	;	



});





