
/* ------------------------------
 bigtargetjs
------------------------------ */
  /*$(document).ready(function(){
    $(".bigtarget dt a").bigTarget();
  });*/

/* ------------------------------
 要素別指定
------------------------------ */

$(function() {
	
	/* common */
	$("div#header div#searchArea").css("margin-top", -$("div#header div#searchArea").height() + 38);
	$("div#header div#searchArea").fadeIn();

	$("div#header div#searchArea div.tabArea").toggle(
	  function () {
		$("div#header div#searchArea").animate({
			marginTop: "0"
		});
		$("div#header div#searchArea div.tabArea span.up").show();
	  },
	  function () {
		$("div#header div#searchArea").animate({
			marginTop: -$("div#header div#searchArea").height() + 38
		});
		$("div#header div#searchArea div.tabArea span.up").hide();
	  }
	);
	
/* home */
	$("div.home div#infoArea div#plan div.planList:last").css("border-bottom", "1px #e5e1cd solid");
	$("div.home div#infoArea div#plan div.planList:odd").css("background-color", "#f6f5ef");

	/* categoryTop */
	/*$("div#categoryTop ul#menuArea li:nth-child(3n)").css("margin-right", "0");*/
	
	/* stay_plan */
	$("div.plan div#recommendedArea div.planList:last").css("border-bottom", "1px #e5e1cd solid");
	$("div.plan div#recommendedArea div.planList:odd").css("background-color", "#f6f5ef");
	$("div.plan div#listArea div.planList:odd").css("background-color", "#f6f5ef");
	$("div.plan div#listArea div#basic div.planList:last").css("border-bottom", "1px #e5e1cd solid");
	$("div.plan div#listArea div#business div.planList:last").css("border-bottom", "1px #e5e1cd solid");
	$("div.plan div#listArea div#ladies div.planList:last").css("border-bottom", "1px #e5e1cd solid");
	$("div.plan div#listArea div#family div.planList:last").css("border-bottom", "1px #e5e1cd solid");
	$("div.plan div#listArea div#couple div.planList:last").css("border-bottom", "1px #e5e1cd solid");
	
	/* restaurant */
	$("div.restaurant div.menuList:odd").css("background-color", "#f6f5ef");
	$("div.restaurant div#breakfastBlock div.menuList:last").css("border-bottom", "1px #e5e1cd solid");
	$("div.restaurant div#lunchBlock div.menuList:last").css("border-bottom", "1px #e5e1cd solid");
	$("div.restaurant div#dinnerBlock div.menuList:last").css("border-bottom", "1px #e5e1cd solid");
	$("div.restaurant div#menulistBlock div.menuList:last").css("border-bottom", "1px #e5e1cd solid");
	
	/* event */
	$("div.index div#listArea div#limit div.eventList:last").css("background", "none");
	$("div.index div#listArea div#limit div.eventList:last").css("margin-bottom", "0");
	$("div.index div#listArea div#through div.eventList:last").css("background", "none");
	$("div.index div#listArea div#through div.eventList:last").css("margin-bottom", "0");
	$("div.past div.eventList:last").css("background", "none");
	$("div.past div.eventList:last").css("margin-bottom", "0");
	$("div.past div.eventList:last").css("padding-bottom", "0");
/*
	$("div.media div#mediaArea div.mediaList:odd").css("margin-right", "0");
*/
	$("div.media div#mediaArea div.mediaList:even").css("margin-right", "40px");

});

/*$(function() {
	$("ul.bnrList li:last-child").css("margin-bottom", "0");
	$("td.format ol li:last-child").addClass("last");
});*/

/* ------------------------------
 アコーディオン
------------------------------ */

$(function() {
	$("div.restaurant div.menuList h3").click(function() {
		$("div.restaurant div.menuList div.fBox").slideUp();
		$(this).next(":hidden").slideToggle();
		return false;
	})
});

/* ------------------------------
 フォーム
------------------------------ */

/*$(function() {
    $("form.jqtransform").jqTransform();
});*/



/* ------------------------------
 タブメニュー
------------------------------ */
/*var tabIds = {
	1 : { tab: '#basicTab',	body: '#basic'	, button : '.tabShowBasic' },
	2 : { tab: '#businessTab',	body: '#business'	, button : '.tabShowBusiness' },
	3 : { tab: '#ladiesTab',	body: '#ladies'	, button : '.tabShowLadies' },
	4 : { tab: '#familyTab',	body: '#family'	, button : '.tabShowFamily' },
	5 : { tab: '#coupleTab',	body: '#couple'	, button : '.tabShowCouple' }
};
var currentTab = 1;

$(function()
{
	var effect = 0;	// fade speed (ms)

	switchTab(currentTab);		// initialize
	
	// bind function
	for (var i = 0 in tabIds) {
		with ({ i : i }) {
			$(tabIds[i].button).click(function() {
				switchTab(i);
			});
		}
	}
	
	// switch tab
	function switchTab(tabId)
	{
		currentTab = tabId;

		// タブを表示
		$(tabIds[tabId].tab).show();
		$(tabIds[tabId].body).fadeIn(effect);

		// その他のタブは隠す
		for (var i = 0 in tabIds) {
			if (i != tabId) {
				$(tabIds[i].tab).hide();
				$(tabIds[i].body).hide();
			}
		}
	}
});*/

