﻿function getObject(prm){//オブジェクト取得

	if(document.getElementById && !document.all || document.layers){
		obj = document.getElementById(prm);
	}else if(document.all){
		obj = document.all(prm);
	}

	return obj;
}

/* 1102新ライトエリア///////////////////////////////////////////////////////////////////////////////////////// */

/* 宿泊モジュール */
document.write('<h5 class="stay_module">ネットで簡単！ホテル宿泊予約</h5><div class="stay_module"><form name ="frmplanseek"><div class="step1"><h6><img src="/images_renewal/rightarea/stay_module/step1.gif" alt="STEP1" width="53" height="17" align="left" />ホテルを選択してください。</h6><div><select name="cmbHOTEL"> <option value="10" selected>場内ホテル全て</option> <option value="11">ホテルヨーロッパ</option> <option value="12">ホテルアムステルダム</option> <option value="13">フォレストヴィラ  </option> </select> </div> </div> <div class="step2"> <h6><img src="/images_renewal/rightarea/stay_module/step2.gif" alt="STEP2" width="53" height="17" align="left" />宿泊日を選択してください。</h6> <div> <select name="cmbARRY"> </select> 年<select name="cmbARRM"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select> 月<select name="cmbARRD"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> 日</div> </div> <div class="step3"> <h6><img src="/images_renewal/rightarea/stay_module/step3.gif" alt="STEP3" width="53" height="17" align="left" />宿泊数を選択してください。</h6> <div> <select name="hidSELECTHAKSU"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select> 泊</div> </div> <div class="step4"> <h6><img src="/images_renewal/rightarea/stay_module/step4.gif" alt="STEP4" width="53" height="17" align="left" />1部屋あたりの利用人数を選択してください。</h6> <div> <dl> <dt class="adult">大人</dt> <dd class="adult"> <select name="cmbADULT"> <option value="1">1</option> <option value="2" selected>2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> 名様</dd> <dt class="child border">小人A</dt> <dd class="border"> <select name="cmbCHILDa"> <option value="0" selected>0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> 名様</dd> <dt class="child">小人D</dt> <dd> <select name="cmbCHILDd"> <option value="0" selected>0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> 名様</dd> </dl> <ul> <li>A：小学生以上</li> <li>D：小学生未満、食事・寝具なし</li> </ul> </div> </div> <input type="hidden" name="cmbCHILDb" value="0"> <input type="hidden" name="cmbCHILDc" value="0"> <input type="hidden" name="minPrice" value="0"> <input type="hidden" name="maxPrice" value="9999999">   <p class="button"><input type="image" src="/images_renewal/rightarea/stay_module/search.gif" alt="検索する" title="検索する" name="seek" onClick="btnSeekSubmit()"></p>  ')
document.write('<!-- script by yas 071219 --->')
document.write('<INPUT type="hidden" name="hidSELECTARRYMD" value="">')
	 
	//日付情報をセット//
	var objfrm =  document.frmplanseek
	var year
	 
	//コンボボックスの年の場所を作成
	today = new Date();
	 
	year = today.getYear();
	if(year < 2000) { year += 1900; }
	 
	    var len = objfrm.cmbARRY.length;
	    objfrm.cmbARRY.options[len] = new Option(year,year);
	    objfrm.cmbARRY.options[len + 1] = new Option(year +1 ,year +1 );
	 
	//コンボボックスに日付を設定
	today.setDate(today.getDate() + 1);
	objfrm.cmbARRY.value = today.getYear();
	objfrm.cmbARRM.value = today.getMonth() + 1;
	objfrm.cmbARRD.value = today.getDate();
	 
	//サブミットボタンをクリックした
	function btnSeekSubmit(btnName) {
	 
	if (objfrm.cmbHOTEL.value==''){
	alert('ホテル名を選択して下さい');
	return false;
	}
	 
	//ホテル名も検索対象に入れるとき==================================
	var htl = objfrm.cmbHOTEL.value;
	//alert(htl[0]);
	//alert(htl[1]);
	//==================================================================
	 
	//日付の設定
	setSeekYmd(objfrm);
	 
	 
	//ウインドウオープンの場合
	window.open('https://asp.hotel-story.ne.jp/ver3d/planlist.asp?hcod1=35200&hcod2=001&hidmode=select&mode=seek&hidSELECTARRYMD='+objfrm.hidSELECTARRYMD.value + '&hidSELECTHAKSU='+objfrm.hidSELECTHAKSU.value + '&hidSELECTadult='+objfrm.cmbADULT.value + '&hidSELECTchilda=' + objfrm.cmbCHILDa.value + '&hidSELECTchildb=' + objfrm.cmbCHILDb.value + '&hidSELECTchildc=' + objfrm.cmbCHILDc.value + '&hidSELECTchildd=' + objfrm.cmbCHILDd.value + '&hidSELECTminPrice='+objfrm.minPrice.value + '&hidSELECTmaxPrice='+objfrm.maxPrice.value + '&sAreacode=' + htl ,'planlist','width=1000,Height=600,resizable=yes,scrollbars=yes,status=yes');
	 
	//そのままサブミットの場合
	//document.frmplanseek.action = 'https://asp.hotel-story.ne.jp/ver3d/planlist.asp?hcod1=35200&hcod2=001&hidmode=select&mode=seek&hidSELECTARRYMD='+ objfrm.hidSELECTARRYMD.value + '&hidSELECTHAKSU='+ objfrm.hidSELECTHAKSU.value + '&hidSELECTadult=' + objfrm.cmbADULT.value + '&hidSELECTchilda=' + objfrm.cmbCHILDa.value + '&hidSELECTchildb=' + objfrm.cmbCHILDb.value + '&hidSELECTchildc=' + objfrm.cmbCHILDc.value + '&hidSELECTchildd=' + objfrm.cmbCHILDd.value + '&hidSELECTminPrice=' + objfrm.minPrice.value + '&hidSELECTmaxPrice=' + objfrm.maxPrice.value  + '&sAreacode=' + htl ,'planlist';
	 
	//document.frmplanseek.method = 'POST';
	//document.frmplanseek.submit();
	}
	 
	//コンボボックスから日付にコンバート
	function setSeekYmd(obj) {
	var tmpText;
	var sIndex;
	 
	sIndex = obj.cmbARRY.selectedIndex;
	tmpText = obj.cmbARRY.options[sIndex].value;
	sIndex = obj.cmbARRM.selectedIndex;
	tmpText = tmpText + '/' + obj.cmbARRM.options[sIndex].value;
	sIndex = obj.cmbARRD.selectedIndex;
	tmpText = tmpText + '/' + obj.cmbARRD.options[sIndex].value;
	 
	obj.hidSELECTARRYMD.value = tmpText
	}

	document.write('</form></div><div style="clear:both"></div>')

	function jsChg(cs)
	{
	document.getElementById('HD_SRCH_hdnCase').value = cs;
	switch(cs)
	{
	case 0:
	document.getElementById('HD_SRCH_li1').className="current";
	document.getElementById('HD_SRCH_li2').className="";
	document.getElementById('HD_SRCH_ul1').style.display = "block";
	document.getElementById('HD_SRCH_ul2').style.display = "none";
	break;
	case 1:
	document.getElementById('HD_SRCH_li1').className="";
	document.getElementById('HD_SRCH_li2').className="current";
	document.getElementById('HD_SRCH_ul1').style.display = "none";
	document.getElementById('HD_SRCH_ul2').style.display = "block";
	break;
	}
	}
	function jsSrch()
	{
	if (document.getElementById('hdnPage') != null)
	{
	document.getElementById('hdnPage').value = "1";
	}
	}
/* 宿泊モジュール ここまで */



document.write('<dl id="rightarea_newdesign" class="rightarea_stay">')

document.write('<dt class="hotel">宿泊施設</dt>')
document.write('<dd>')
document.write('<ul>')

/* ホテルヨーロッパ */
document.write('<li><a id="NaviOpen2" href="javascript:void\(0);" title="ホテルヨーロッパ">ホテルヨーロッパ</a></li>')
document.write('<li id="slide2" class="sub">')
document.write('<a href="http://hotels.huistenbosch.co.jp/he/" title=title="ホテルヨーロッパ トップへ" class="toplevel" target="_blank">ホテルヨーロッパ トップへ</a>')
/*document.write('<span class="bottomline guest">ゲストルーム</span>')
document.write('<a href="/stay/eu/guest/index.html" title="スタンダード　ダブル／ツイン">スタンダード　ダブル／ツイン</a>')
document.write('<a href="/stay/eu/guest/guest02.html" title="ロフト　ダブル／ツイン">ロフト　ダブル／ツイン</a>')
document.write('<a href="/stay/eu/guest/guest03.html" title="デラックス　ダブル／ツイン">デラックス　ダブル／ツイン</a>')
document.write('<a href="/stay/eu/guest/guest04.html" title="デラックスハーバービュー　ダブル／ツイン">デラックスハーバービュー　ダブル／ツイン</a>')
document.write('<a href="/stay/eu/guest/guest05.html" title="エグゼクティブ　ツイン">エグゼクティブ　ツイン</a>')
document.write('<a href="/stay/eu/guest/guest06.html" title="エグゼクティブ　メゾネット　ダブル/ツイン">エグゼクティブ　メゾネット　ダブル/ツイン</a>')
document.write('<a href="/stay/eu/guest/guest07.html" title="エグゼクティブ メゾネット　フォース">エグゼクティブ メゾネット　フォース</a>')
document.write('<a href="/stay/eu/guest/guest08.html" title="ラグジュアリー　ダブル／ツイン">ラグジュアリー　ダブル／ツイン</a>')
document.write('<a href="/stay/eu/guest/guest09.html" title="プレミアスイート　ダブル">プレミアスイート　ダブル</a>')
document.write('<a href="/stay/eu/guest/guest10.html" title="プレミアスイート　ツイン">プレミアスイート　ツイン</a>')
document.write('<a href="/stay/eu/guest/guest12.html" title="メゾネットスイート">メゾネットスイート</a>')
document.write('<a href="/stay/eu/guest/guest13.html" title="ロイヤルスイート">ロイヤルスイート</a>')
document.write('<a href="/stay/eu/guest/guest11.html" title="インペリアルスイート">インペリアルスイート</a>')
document.write('<span class="topbottomline restaurants">レストラン</span>')
document.write('<a href="/gourmet/french/001350.html" title="デ アドミラル">デ アドミラル</a>')
document.write('<a href="/gourmet/french/001423.html" title="吉翠亭（きっすいてい）">吉翠亭（きっすいてい）</a>')
document.write('<a href="/gourmet/japanese/000209.html" title="戎座（えびすざ）">戎座（えびすざ）</a>')
document.write('<span  class="topbottomline bar">バー・ラウンジ</span>')
document.write('<a href="/gourmet/bar/000235.html" title="シェヘラザード">シェヘラザード</a>')
document.write('<a href="/gourmet/cafe/000230.html" title="アンカーズラウンジ">アンカーズラウンジ</a>')
document.write('<span class="topbottomline spa">スパ</span>')
document.write('<a href="/stay/spa/000321.html" title="The Life spa RIN ホテルヨーロッパ">The Life spa RIN<br />ホテルヨーロッパ</a>')*/
document.write('</li>')

/* ホテルアムステルダム */
document.write('<li><a id="NaviOpen4" href="javascript:void\(0);" title="ホテルアムステルダム">ホテルアムステルダム</a></li>')
document.write('<li id="slide4" class="sub">')
document.write('<a href="/stay/am/index.html" title="ホテルアムステルダム トップへ" class="toplevel">ホテルアムステルダム トップへ</a>')
document.write('<span class="bottomline guest">ゲストルーム</span>')
document.write('<a href="/stay/am/guest/index.html" title="スタンダード">スタンダード</a>')
document.write('<a href="/stay/am/guest/guest07.html" title="スーペリア">スーペリア</a>')
document.write('<a href="/stay/am/guest/guest03.html" title="デラックス">デラックス</a>')
document.write('<a href="/stay/am/guest/guest02.html" title="ハーバービュー">ハーバービュー</a>')
document.write('<a href="/stay/am/guest/guest04.html" title="ミッフィールーム">ミッフィールーム</a>')
document.write('<a href="/stay/am/guest/guest012.html" title="ワンピースルーム">ワンピースルーム</a>')
document.write('<a href="/stay/am/guest/guest08.html" title="ローラアシュレイ　スタンダード">ローラアシュレイ　スタンダード</a>')
document.write('<a href="/stay/am/guest/guest09.html" title="ローラアシュレイ　スーペリア">ローラアシュレイ　スーペリア</a>')
document.write('<a href="/stay/am/guest/guest010.html" title="ローラアシュレイ　デラックス">ローラアシュレイ　デラックス</a>')
document.write('<a href="/stay/am/guest/guest011.html" title="ローラアシュレイ　スイート">ローラアシュレイ　スイート</a>')

document.write('<span class="topbottomline restaurants">レストラン</span>')
document.write('<a href="/gourmet/world/000215.html" title="ア クールベール">ア クールベール</a>')
document.write('<span class="topbottomline bar">バー・ラウンジ</span>')
document.write('<a href="/gourmet/cafe/000228.html" title="ア クールベール カフェ">ア クールベール カフェ</a>')
document.write('</li>')

/* フォレストヴィラ */
document.write('<li><a id="NaviOpen5" href="javascript:void\(0);" title="フォレストヴィラ">フォレストヴィラ</a></li>')
document.write('<li id="slide5" class="sub">')
document.write('<a href="/stay/fv/index.html" title="フォレストヴィラ トップへ" class="toplevel">フォレストヴィラ トップへ</a>')
document.write('<span class="bottomline guest">ゲストルーム</span>')
document.write('<a href="/stay/fv/guest/index.html" title="フォレストヴィラ　スタンダード">スタンダード</a>')
document.write('<a href="/stay/fv/guest/guest01.html" title="フォレストヴィラ　スタンダード">デラックス</a>')
document.write('<span class="topbottomline dog">ドッグヴィラ</span>')
document.write('<a href="/stay/fv/dogvilla/index.html" title="ドッグヴィラ トップへ">ドッグヴィラ トップへ</a>')
document.write('<a href="/stay/fv/dogvilla/guest/index.html" title="ドッグヴィラ コテージ">ドッグヴィラ コテージ</a>')
document.write('<a href="/stay/fv/dogvilla/reservation/index.html" title="ご予約について">ご予約について</a>')
document.write('<a href="/stay/fv/dogvilla/dog_list/index.html" title="宿泊可能犬種一覧">宿泊可能犬種一覧</a>')
document.write('<a href="/stay/fv/dogvilla/conditions/index.html" title="ご利用約款">ご利用約款</a>')
document.write('<a href="/faq/hotel.html#qa29" title="Q&#38;A" target="_blank">Q&#38;A</a>')
document.write('<span class="topbottomline restaurants">レストラン</span>')
document.write('<a href="/gourmet/world/000449.html" title="トロティネ">トロティネ</a>')
document.write('</li>')

/* 迎賓館 */
document.write('<li><a href="/stay/rg/index.html" title="迎賓館" class="bottom">迎賓館</a></li>')

document.write('</ul>')
document.write('</dd>')
document.write('</dl>')

/* 場内ホテル宿泊特典、宿泊に関するQ&A、近隣ホテルのご案内 */
document.write('<ul class="rightarea_stay_infomation">')
document.write('<li><a href="/stay/tokuten/index.html" title="場内ホテル宿泊特典" class="tokuten">場内ホテル宿泊特典</a></li>')
document.write('<li><a href="/stay/map/" title="場内ホテルまでのアクセス" class="accsee">場内ホテルまでのアクセス</a></li>')
document.write('<li><a href="/faq/hotel.html" title="宿泊に関するQ&#38;A" class="faq" target="_blank">宿泊に関するQ&#38;A</a></li>')
//document.write('<li><a href="/faq/hotel.html" title="近隣ホテルのご案内" class="info">近隣ホテルのご案内</a></li>')
document.write('</ul>')




divid2 = "NaviOpen2";
divid4 = "NaviOpen4";
divid5 = "NaviOpen5";

now2 = 1;
now4 = 1;
now5 = 1;

var uName = navigator.userAgent;
if (uName.indexOf("Safari") >-1){
	var demo2effect = new Fx.Slide('slide2',{duration: 1000});
	var demo4effect = new Fx.Slide('slide4',{duration: 1000});
	var demo5effect = new Fx.Slide('slide5',{duration: 1000});
}else{
	var demo2effect = new Fx.Slide('slide2',{duration: 250});
	var demo4effect = new Fx.Slide('slide4',{duration: 250});
	var demo5effect = new Fx.Slide('slide5',{duration: 250});
}

var objdivid2 = getObject("NaviOpen2");
var objdivid4 = getObject("NaviOpen4");
var objdivid5 = getObject("NaviOpen5");

$(divid2).addEvent('click', function(){
	demo4effect.hide();
	demo5effect.hide();
	
	now4=1;
	now5=1;

	demo2effect.toggle('vertical');
	if(now2 == 1){
		//objdivid2.style.color = "#4D4113";
		//objdivid2.style.background = "transparent url(/stay/images/rightarea_stay.gif) no-repeat left -109px";
		now2 =0;
	}
	else{
		//objdivid2.style.color = "#8C7724";
		//objdivid2.style.background = "transparent url(/stay/images/rightarea_stay.gif) no-repeat left -37px";
		now2 =1;
	}
});

$(divid4).addEvent('click', function(){
	demo2effect.hide();
	demo5effect.hide();

	now2=1;
	now5=1;

	demo4effect.toggle('vertical');
	if(now4 == 1){
		//objdivid4.style.color = "#4D4113";
		//objdivid4.style.background = "transparent url(/stay/images/rightarea_stay.gif) no-repeat left -109px";
		now4 =0;
	}else{
		//objdivid4.style.color = "#8C7724";
		//objdivid4.style.background = "transparent url(/stay/images/rightarea_stay.gif) no-repeat left -37px";
		now4 =1;
	}
});


$(divid5).addEvent('click', function(){
	demo2effect.hide();
	demo4effect.hide();
	
	now2=1;
	now4=1;

	demo5effect.toggle('vertical');

	if(now5 == 1){
		//objdivid5.style.color = "#4D4113";
		//objdivid5.style.background = "transparent url(/stay/images/rightarea_stay.gif) no-repeat left -109px";
		now5 =0;
	}else{
		//objdivid5.style.color = "#8C7724";
		//objdivid5.style.background = "transparent url(/stay/images/rightarea_stay.gif) no-repeat left -37px";
		now5 =1;
	}
});

demo2effect.hide();
demo4effect.hide();
demo5effect.hide();

