jQuery(function(){

/***index******************************/

	//各ボタンhover
	$("input:image")
		.hover(
			function () {
				$(this).attr('src',$(this).attr('src').replace("/off/", "/on/"));
			},
			function () {
				$(this).attr('src',$(this).attr('src').replace("/on/", "/off/"));
			}
		)
	;
	
	//セフレリストフォームvalueの値
	$("input#name")
		.focus(
			function () {
				if ($(this).attr('value') == 'ハンドルネーム') {
					$(this).attr('value','');
				}
			}
		)
		.blur(
			function () {
				if ($(this).val() == '') {
					$(this).attr('value', 'ハンドルネーム');
				}
			}
		)
	;
	$("input.mailaddress")
		.focus(
			function () {
				if ($(this).attr('value') == '携帯メールアドレス推奨') {
					$(this).attr('value','');
				}
			}
		)
		.blur(
			function () {
				if ($(this).val() == '') {
					$(this).attr('value', '携帯メールアドレス推奨');
				}
			}
		)
	;
	//利用規約ウィンドウ
	$("a.rule")
		.click(
			function () {
				window.open(this.href, '利用規約', 'width=420, height=650, menubar=no, toolbar=no, scrollbars=yes');
				return false;
			}
		)
	;
	//女性登録ウィンドウ
	$("a.f_reg")
		.click(
			function () {
				window.open(this.href, '女性登録', 'width=430, height=550, menubar=no, toolbar=no, scrollbars=yes');
				return false;
			}
		)
	;
	//お問い合わせウィンドウ
	$("a.contact")
		.click(
			function () {
				window.open(this.href, 'お問い合わせ', 'width=420, height=500, menubar=no, toolbar=no, scrollbars=yes');
				return false;
			}
		)
	;
	//利用規約ウィンドウ
	$("a.footer_rule")
		.click(
			function () {
				window.open(this.href, '利用規約', 'width=420, height=650, menubar=no, toolbar=no, scrollbars=yes');
				return false;
			}
		)
	;
	//会社概要ウィンドウ
	$("a.company")
		.click(
			function () {
				window.open(this.href, '会社概要', 'width=420, height=400, menubar=no, toolbar=no, scrollbars=yes');
				return false;
			}
		)
	;
	//個人情報の取り扱いウィンドウ
	$("a.privacy")
		.click(
			function () {
				window.open(this.href, '個人情報', 'width=420, height=700, menubar=no, toolbar=no, scrollbars=yes');
				return false;
			}
		)
	;
	$("a.sponsor")
		.click(
			function () {
				window.open(this.href, '個人情報', 'width=300, height=300, scrollbars=yes');
				return false;
			}
		)
	;
});

