// JavaScript Document

jQuery.easing.quart = function (x, t, b, c, d) { return -c * ((t=t/d-1)*t*t*t - 1) + b; };


/*************************************************
/*
/*   hokendirect.jp
/*
/************************************************/

/*
--------------------------------------------
  top
--------------------------------------------
*/

$(document).ready(function() {
	
	//$('#main').css('height','0px');
	//$('#main').animate({height:240},800,'quart');

});


/*
--------------------------------------------
  tenpo
--------------------------------------------
*/
//map
$(document).ready(function() {

    //$('#touhoku, #kantou').css('height','0px');
	//$('#touhoku, #kantou').hover(
	//function () {$('.mapPointer').animate({height:45},100,'quart')}, 
	//function () {$('.mapPointer').animate({height:0},10,'quart')}
	//);
	
	//hover alpha fade in
	$('.shop_map_alpha').css('opacity','0.8');
	$('.shop_map_alpha').hover(
	function () {$('.shop_map_alpha').animate({opacity:0.0},100,'quart')},
	function () {$('.shop_map_alpha').animate({opacity:0.0},0,'quart')}
	);
	
	//hover bg fade in
	$('.shop_map, .shop_map_dummy').css('opacity','1.0');
	$('.shop_map').hover(
	function () {$('.shop_map, .shop_map_dummy').animate({opacity:1.0},300,'quart')}, 
	function () {$('.shop_map, .shop_map_dummy').animate({opacity:0.8},300,'quart')}
	);
	
	
	//hover fade in
	$('.shop_map_title').css('opacity','1.0');
	$('.shop_map').hover(
	function () {$('.shop_map_title').animate({opacity:1.0},300,'quart')}, 
	function () {$('.shop_map_title').animate({opacity:1.0},300,'quart')}
	);
	
	
	//touhoku
	$('#touhoku').hover(
	function () {$('.shop_map').css("background" , "url(img/map_hover_touhoku.jpg)")}, 
	function () {$('.shop_map').css("background" , "url(img/map_NEUTRAL.jpg)")}
	);
	
	//kantou
	$('#kantou').hover(
	function () {$('.shop_map').css("background" , "url(img/map_hover_kantou.jpg)")}, 
	function () {$('.shop_map').css("background" , "url(img/map_NEUTRAL.jpg)")}
	);
	
	//chubu
	$('#chubu').hover(
	function () {$('.shop_map').css("background" , "url(img/map_hover_chubu.jpg)")}, 
	function () {$('.shop_map').css("background" , "url(img/map_NEUTRAL.jpg)")}
	);
	
	//kinki
	$('#kinki').hover(
	function () {$('.shop_map').css("background" , "url(img/map_hover_kinki.jpg)")}, 
	function () {$('.shop_map').css("background" , "url(img/map_NEUTRAL.jpg)")}
	);
	
	//chugoku
	$('#chugoku').hover(
	function () {$('.shop_map').css("background" , "url(img/map_hover_chugoku.jpg)")}, 
	function () {$('.shop_map').css("background" , "url(img/map_NEUTRAL.jpg)")}
	);
	
	//kyushu
	$('#kyushu').hover(
	function () {$('.shop_map').css("background" , "url(img/map_hover_kyushu.jpg)")}, 
	function () {$('.shop_map').css("background" , "url(img/map_NEUTRAL.jpg)")}
	);

});
