﻿function gFooterWrite(gNavVer){
	var gFooterHtml = '';
	gFooterHtml += '	<div id="FnaviSpace1">\n';
	gFooterHtml += '		<ul id="fnavispace_top">\n';
	gFooterHtml += '			<li class="fnavispace_sec"><a href="/">ワイン カーヴTOPページ </a>\n';
	gFooterHtml += '			</li>\n';
	gFooterHtml += '			<li class="fnavispace_sec"><a href="/wine_knowledge/">ワイン基礎知識</a>\n';
	gFooterHtml += '				<ul class="fnavispace_thi">\n';
	gFooterHtml += '					<li><a href="/wine_knowledge/general/">ワインに関する一般的な知識</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_knowledge/question/">よくある疑問・誤解</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_knowledge/restaurant/">レストランでのワイン選び</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_knowledge/sommelier/">ソムリエ・ワインアドバイザー・ワインエキスパート資格対策</a></li>\n';
	gFooterHtml += '				</ul>\n';
	gFooterHtml += '			</li>\n';
	gFooterHtml += '			<li class="fnavispace_sec clearFix"><a href="/wine_region/">国・地域別ワインの特徴</a>\n';
	gFooterHtml += '				<ul class="fnavispace_thib">\n';
	gFooterHtml += '					<li><a href="/wine_region/france/">フランス</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_region/italy/">イタリア</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_region/germany/">ドイツ</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_region/spain/">スペイン</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_region/america/">アメリカ</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_region/portugal/">ポルトガル</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_region/chile/">チリ</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_region/argentina/">アルゼンチン</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_region/australia/">オーストラリア </a></li>\n';
	gFooterHtml += '					<li><a href="/wine_region/southafrica/">南アフリカ</a></li>\n';
	gFooterHtml += '				</ul>\n';
	gFooterHtml += '				<ul class="fnavispace_thic">\n';
	gFooterHtml += '					<li><a href="/wine_region/newzealand/">ニュージーランド </a></li>\n';
	gFooterHtml += '				</ul>\n';
	gFooterHtml += '			</li>\n';
	gFooterHtml += '			<li class="fnavispace_sec clearFix"><a href="/wine_grapes/">ワインに使用される葡萄の品種別特徴</a>\n';
	gFooterHtml += '				<ul class="fnavispace_thib">\n';
	gFooterHtml += '					<li><a href="/wine_grapes/grapes_a.shtml">ア行</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_grapes/grapes_k.shtml">カ行</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_grapes/grapes_s.shtml">サ行</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_grapes/grapes_t.shtml">タ行</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_grapes/grapes_n.shtml">ナ行</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_grapes/grapes_h.shtml">ハ行</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_grapes/grapes_m.shtml">マ行</a></li>\n';
	gFooterHtml += '					<li><a href="/wine_grapes/grapes_y.shtml">ヤ・ラ・ワ行</a></li>\n';
	gFooterHtml += '				</ul>\n';
	gFooterHtml += '			</li>\n';
	gFooterHtml += '			<li class="fnavispace_sec clearFix"><a href="/chateau/index.html">ボルドーの5大シャトー</a>\n';
	gFooterHtml += '				<ul class="fnavispace_thib">\n';
	gFooterHtml += '					<li><a href="/chateau/chateau_mouton_rothschild.html">シャトー・ムートン・ロートシルト</a></li>\n';
	gFooterHtml += '					<li><a href="/chateau/chateau_haut_brion.html">シャトー・オー・ブリオン</a></li>\n';
	gFooterHtml += '					<li><a href="/chateau/chateau_latour.html">シャトー・ラトゥール</a></li>\n';
	gFooterHtml += '					<li><a href="/chateau/chateau_margaux.html">シャトー・マルゴー</a></li>\n';
	gFooterHtml += '					<li><a href="/chateau/index.html">シャトー・ラフィット・ロートシルト</a></li>\n';
	gFooterHtml += '				</ul>\n';
	gFooterHtml += '			</li>\n';
	gFooterHtml += '			<li class="fnavispace_sec clearFix"><a href="/item/">ワイングッズ</a>\n';
	gFooterHtml += '				<ul class="fnavispace_thib">\n';
	gFooterHtml += '					<li><a href="/item/wine_celler.html">ワインセラー</a></li>\n';
	gFooterHtml += '					<li><a href="/item/sommelier_knife.html">ソムリエナイフ</a></li>\n';
	gFooterHtml += '					<li><a href="/item/wine_glass.html">ワイングラス</a></li>\n';
	gFooterHtml += '				</ul>\n';
	gFooterHtml += '			</li>\n';
	gFooterHtml += '			<li class="fnavispace_sec"><a href="/wine_dictionary/">ワイン用語集</a>\n';
	gFooterHtml += '			</li>\n';
	gFooterHtml += '		</ul>\n';
	gFooterHtml += '	</div>\n';

document.write(gFooterHtml);
}


hc_o6=(navigator.userAgent.indexOf('Opera/5.')>=0) || (navigator.userAgent.indexOf('Opera 5.')>=0 ||
    navigator.userAgent.indexOf('Opera/6.')>=0) || (navigator.userAgent.indexOf('Opera 6.')>=0 || (navigator.userAgent.indexOf('MSIE 4.')>=0 && !window.opera));
if ((document.all || document.getElementById) && !hc_o6) hc_onload=window.onload, window.onload=hc_init;
function hc_init() {
	if (!document.all && !document.getElementById || hc_o6) return;
	var i,idn,j,k,eles;

	if (document.all && !window.opera) eles=document.all; else eles=document.getElementsByTagName('*');

	i=-1;
	while (++i<eles.length) {
		idn=eles[i].getAttribute('id');
		if (!idn) continue;
		if (idn.indexOf(navi_open)==0) {
			j=idn.substring(navi_open.length,idn.length);
			if (!document.getElementById(footernavi+j)) continue;
			k=eles[i].innerHTML; k+=' <a id="'+navi_open+'_'+j+'" href="javascript:hc_open_close('+j+')">'+btn_Fnavi+'</a>';
			eles[i].innerHTML=k;
			continue;
			}
		if (idn.indexOf(footernavi)==0) {
			j=idn.substring(footernavi.length,idn.length);
			if (!document.getElementById(footernavi+j)) continue;
			eles[i].setAttribute('defaultDisplay',eles[i].style.display);
			eles[i].style.display='none';
			}
		}
	if (hc_onload) { hc_onload(); hc_onload=''; }
}

function hc_open_close(idn) {
	if (!document.all && !document.getElementById || hc_o6) return;

	var i,j,anc,blc;

	if (document.all) anc=document.all[navi_open+'_'+idn],blc=document.all[footernavi+idn];
	else anc=document.getElementById(navi_open+'_'+idn),blc=document.getElementById(footernavi+idn);
	if (!blc || !anc) return;
	if (blc.style.display=='none') {
		blc.style.display=blc.getAttribute('defaultDisplay');
		anc.innerHTML=btn_Fnavi_on;
		return;
		}
	blc.style.display='none';
	anc.innerHTML=btn_Fnavi;
	return;
}

navi_open='Footenavi';
footernavi='FnaviSpace';
btn_Fnavi='<img src="/images/common/btn_btm_navi.gif" width="273" height="40" alt="" />';
btn_Fnavi_on='<img src="/images/common/btn_btm_navi.gif" width="273" height="40" alt="" />';
