function switchSearchBox(id){
	var disp = document.getElementById(id).style.display;
	if(disp == "block"){
		document.getElementById(id).style.display="none";
		document.getElementById('detailSearchTtl').innerHTML = "詳細検索を利用する";
		document.getElementById('detailSearch').style.cssText = "background:url(http://image.www.rakuten.co.jp/com/img/icon/tri/w05s04/w05s04_red_under.gif) no-repeat 2px 2px;";
	}else{
		document.getElementById(id).style.display="block";
		document.getElementById('detailSearchTtl').innerHTML = "詳細検索を閉じる";
		document.getElementById('detailSearch').style.cssText = "background:url(http://image.www.rakuten.co.jp/com/img/icon/tri/w05s04/w05s04_red_up.gif) no-repeat 2px 2px;";
	}
	return false;
}

function switchPriceBox(id){
	var disp = document.getElementById(id).style.display;
	if(disp == "block"){
		document.getElementById(id).style.display="none";
		document.getElementById('detailPriceTtl').innerHTML = "価格帯リンクから選ぶ";
		document.getElementById('detailPrice').style.cssText = "background:url(http://image.www.rakuten.co.jp/com/img/icon/tri/w05s04/w05s04_red_under.gif) no-repeat 2px 2px;";
	}else{
		document.getElementById(id).style.display="block";
		document.getElementById('detailPriceTtl').innerHTML = "価格帯リンクを利用しない";
		document.getElementById('detailPrice').style.cssText = "background:url(http://image.www.rakuten.co.jp/com/img/icon/tri/w05s04/w05s04_red_up.gif) no-repeat 2px 2px;";
	}
	return false;
}

function dispMenu(id){
	var disp = document.getElementById(id).style.display;
	if(disp == "block"){
		document.getElementById(id).style.display="none";
	}else{
		document.getElementById(id).style.display="block";
	}
	return false;
}

function asurakuDispControl() {
	var boxObj = document.getElementById("asurakuAreaBox");
	if (boxObj.style.display=="block") {
		asurakuDispClose();
	} else {
		asurakuDispOpen();
		addNarrowDispClose();
	}
}

function addNarrowDispControl() {
	var boxObj = document.getElementById("addNarrow");
	if (boxObj.style.display=="block") {
		addNarrowDispClose();
	} else {
		addNarrowDispOpen();
		asurakuDispClose();
	}
}

function asurakuDispClose() {
	var boxObj = document.getElementById("asurakuAreaBox");
	var btnObj = document.getElementById("asurakuAreaBoxBtn");
	var linkObj = document.getElementById("asurakuAreaLink");
	if (boxObj != null && btnObj != null && linkObj != null) {
		boxObj.style.display="none";
		btnObj.style.backgroundColor="";
		btnObj.className = "addIcon";
		linkObj.childNodes[0].nodeValue = "あす楽で絞り込む";
	}
}

function asurakuDispOpen() {
	var boxObj = document.getElementById("asurakuAreaBox");
	var btnObj = document.getElementById("asurakuAreaBoxBtn");
	var linkObj = document.getElementById("asurakuAreaLink");
	if (boxObj != null && btnObj != null && linkObj != null) {
		boxObj.style.display="block";
		btnObj.style.backgroundColor="#ffffff";
		btnObj.className = "removeIcon";
		linkObj.childNodes[0].nodeValue = "あす楽で絞り込む";
	}
}

function addNarrowDispClose() {
	var boxObj = document.getElementById("addNarrow");
	var btnObj = document.getElementById("addNarrowBtn");
	var linkObj = document.getElementById("addNarrowLink");
	boxObj.style.display="none";
	btnObj.className = "addIcon";
	linkObj.childNodes[0].nodeValue = "絞込条件を追加する";
}

function addNarrowDispOpen() {
	var boxObj = document.getElementById("addNarrow");
	var btnObj = document.getElementById("addNarrowBtn");
	var linkObj = document.getElementById("addNarrowLink");
	boxObj.style.display="block";
	btnObj.className = "removeIcon";
	linkObj.childNodes[0].nodeValue = "絞込条件を閉じる";
}

function showprice(priceid1,priceid2,priceid3) {
	if (document.getElementById(priceid1).style.display == "none"){
		document.getElementById(priceid1).style.display = "block";
		document.getElementById(priceid2).style.display = "none";
		document.getElementById(priceid3).style.display = "block";
	} else {
		document.getElementById(priceid1).style.display = "none";
		document.getElementById(priceid2).style.display = "block";
		document.getElementById(priceid3).style.display = "none";
	}
}

function showdetail(detailSearchId1,detailSearchId2,detailSearchId3){
	if(document.getElementById){
		if (document.getElementById(detailSearchId1).style.display == "none"){
			document.getElementById(detailSearchId1).style.display = "block";
			document.getElementById(detailSearchId2).style.display = "block";
			document.getElementById(detailSearchId3).style.display = "none";
		} else {
			document.getElementById(detailSearchId1).style.display = "none";
			document.getElementById(detailSearchId2).style.display = "none";
			document.getElementById(detailSearchId3).style.display = "block";
		}
	}
}

