/*==========================================================
FLASH：トップページで使用
==========================================================*/
function disp_fla(str){
	html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="503" height="268">';
	html+='<param name="movie" value="/swf/illust_top_map.swf">';
	html+='<param name="quality" value="high">';
	html+='<param name="flashvars" value="file_type='+ str +'">';
	html+='<embed flashvars="file_type='+ str +'" src="/swf/illust_top_map.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="503" height="268"></embed>';
	html+='</object>';
//alert(html);
	document.getElementById('fla_map').innerHTML=html;
}

function ctrl_navi(obj,n){
	$("fla_map").style.display  = n==0 ? "block" : "none";
	$("txt_navi").style.display = n==1 ? "block" : "none";
}
/*==========================================================
じゃらんの宿一覧表示：県別・エリア別ファイルで使用
==========================================================*/
function disp_jalan(area_type,id,onsen_type){
	switch(area_type){
		case("pref"):
		q="jalan_pref_id="+id;
		break;
		case("l_area"):
		q="area_id="+id;
		break;
		default:
		break;
	}
	switch("onsen_type"){
		case("kakenagashi"):
		q+="&genre=kakenagashi";
		break;
		case("nigoriyu"):
		q+="&genre=nigoriyu";
		break;
		default:
		break;
	}
	options={method:"get"};
	uri="/etc/disp_jalan_etc.php?mode=onsen&"+q;
	new Ajax.Updater("jalan_onsen",uri,options);

	uri="/etc/disp_jalan_etc.php?mode=yado&"+q;
	new Ajax.Updater("jalan_yado",uri,options);
}

/*==========================================================
楽天の施設情報表示：個別ファイルで使用
==========================================================*/
function disp_rakuten_kobetsu(rakuten_id){
	options={method:"get"};
	uri="/etc/disp_rakuten_kobetsu.php?rakuten_id="+rakuten_id;
	new Ajax.Updater("rakuten_info",uri,options);
}

/*==========================================================
バナー表示
==========================================================*/
function disp_3_banners(){
	uri="/etc/_tpl_inc_ads_ue.html";
	options={method:"get"};
	new Ajax.Updater("ads_ue",uri,options);
}
/*==========================================================
この温泉を見た人は...　個別ページでのみ使用
==========================================================*/
function disp_recommend(id){
	uri="/etc/recommend.php";
	options={method:"get",parameters: "id="+id};
	new Ajax.Updater("recommend",uri,options);
}
