$(function(){
	$('.click').click(function(){
		window.location=$(this).find("a").attr("href"); return false; });
	$('.click').hover(function(){
    	$(this).css({ backgroundColor:'#FBCECC' });
	},function(){
    	$(this).css({ backgroundColor:'#ffffff' });
	});
});

$(function(){
	var mainnav = $("#nav > li");
	mainnav.children("ul").hide();
	mainnav.hover(
		function(){ $(this).children("ul").fadeIn(300); },
		function(){ $(this).children("ul").fadeOut(300); }
		);
});

$(function(){
	$("#btn-map3").hide();
	$('#btn-map2').append($('<div id="btn-map"><p><img src="http://www.hachinoki.co.jp/t/wp-content/themes/8noki/img/map.png" width="450px" height="200"><br>&raquo; <a href="http://www.hachinoki.co.jp/access/map/">詳細地図を見る</a></p></div>'));
	$('#btn-map').hover(function(){
			$(this).css("cursor","pointer").css("background", "url(http://www.hachinoki.co.jp/t/wp-content/themes/8noki/img/btn-map.png) no-repeat 0 -60px");
		},function(){
			$(this).css("cursor","default").css("background", "url(http://www.hachinoki.co.jp/t/wp-content/themes/8noki/img/btn-map.png) no-repeat 0 0");
		});
	$('#btn-map').click(function(){
		$(this).children("p").slideToggle();               
	});
});
