/*---------------------------------

インプットマウスオーバー

---------------------------------*/
$(function(){
	$(".btn_submit input").hover(
	function () {
		$(this).addClass("on");
	}, 
	function () {
		$(this).removeClass("on");
	});
});



/*---------------------------------

カーソール表示

---------------------------------*/
$(function() { 
	$("#searchAction").mouseover(function () {
		$(this).css({"cursor":"pointer"});	
	});
});

$(function() { 
	$("#searchAction").click(function () {
		var n = $("#feas-searchform input:checked").length;
		var txtCheck = $("#feas-searchform #freeword").val();
				
		if (n != 0 || txtCheck != "") {
			//フリーワード
			$("#freeword").val(txtCheck + ",宇都宮餃子会加盟店");
			$("#freeword").addClass("freeBlank");
			return true;
		} else {
			window.location.href = "http://www.gyozakai.com/wordpress/tenpo_list/";
			return false;

		}
		

		
	});
});




/*---------------------------------

フォーム要素

---------------------------------*/
$(document).ready(function() {
	$("input[type='text'],textarea").addClass("txt_base_style");
	
	/*フォーカス*/
	$("input[type='text'],textarea")
		.focus(function() {
			$(this).addClass("focus_style");
		})
		.blur(function() {
			$(this).removeClass("focus_style");
		});	
});



/*---------------------------------

食べ歩きガイドマップ

---------------------------------*/
$(function(){
	$(".guidemap_conts .box").hover(
	function () {
		nowImg = $(this).children();
		srcBtn_s = $(nowImg).attr("src");
		srcBtn_s = srcBtn_s.replace("_df.", "_ov.");
		$(nowImg).attr("src",srcBtn_s);
	}, 
	function () {
		srcBtn_s = srcBtn_s.replace("_ov.", "_df.");
		$(nowImg).attr("src",srcBtn_s);
	});
});


/*---------------------------------

アレルギーページ

---------------------------------*/
$(function(){
	$(".allListBlock .list:even").addClass("mgnSet");
});



/*---------------------------------

トップbr削除

---------------------------------*/
$(function(){
	$("#topLayer #infoBlock ul.eventBox li p br").remove();

});




