/*
	基本のJS
	作成日：080211
	更新日：090610
*/

function showCoupon(o) {
	o.parentNode.style.display='none';
	var nextDivNode = o.parentNode.nextSibling;
	while (nextDivNode.nodeType != 1) {
		nextDivNode = nextDivNode.nextSibling;
	}
	nextDivNode.style.display='block';
	return false;
}

function mouseoverShowCoupon(o) {
	o.parentNode.className = "showCoupon couponHover";
}

function mouseoutShowCoupon(o) {
	o.parentNode.className = "showCoupon";
}

function mouseoverHover(o) {
	o.className = "hideCoupon couponHover";
}

function mouseoutHover(o) {
	o.className = "hideCoupon";
}

function mouseoverCouponSpan(o) {
	o.className = "hover";
}

function mouseoutCouponSpan(o) {
	o.className = "";
}

function forwardToCouponDetail(o) {
	location.href = o.title;
}

// ハブリング抑止のためにこのメソッドは残す
$(function(){
	$('div#mainContents div.article div.hideCoupon div.switch').click(function(e) {
		$(this).parent().hide();
		$(this).parent().prev().show();
		return false;
	});
});

//こだわりエリアの表示
function moreParameterSwitch(){
	var isDispMore = $('#moreParameter').css('display');
	if(isDispMore == 'none'){
		document.getElementById("FEFLG").value = "1";
		$('#moreParameter').css('display','block');
		$('#showParameterBtn').css('display','none');
	}else{
		document.getElementById("FEFLG").value = "0";
		$('#moreParameter').css('display','none');
		$('#showParameterBtn').css('display','block');
	}
}

<!-- Hide script from old browser

//コース飲み放題制御
function showHideCB(f, target){
  var disp_style;
  if(f){
		$('#'+target).show();
  }else{
		$('#'+target).hide();
  }
}

//レイヤー領域項目選択時制御
function submitStepLayer( param, cd, param2 ){
  var step_cnt = window.document.getElementById("step").length;

  for(var k = 0; k < step_cnt; k++ ){
    var f = document.getElementById("step").elements[k];
    if(f.name == param){
      f.value = cd;
    }
    if(f.name == param2){
      f.value = '';
    }
  }

  var hiddenTag = '';
  if( typeof cd == 'string' ){
	hiddenTag = hiddenTag + '<input type="hidden" name="'+param+'" value="'+cd+'" />';
  }else{
  	for(var i = 0; i < cd.length; i++ ){
			hiddenTag = hiddenTag + '<input type="hidden" name="'+param+'" value="'+cd[i]+'" />';
	}
  }

  $("form[id='step']").html($("form[id='step']").html()+hiddenTag);
  document.getElementById("step").target = '_self';
  document.getElementById("step").submit();
}

function setSearchListUrl(){
	$.cookie('HPJ_RESULT_URL', document.URL, { expires: 10 * 365, path:'/' });
}

// end Hiding -->


