//共通ヘッダメニュー
function writeHeaderMenu(over){
	if(!over){
		over = "";
	}

	document.write('<td width="366" valign="bottom"> ');
	document.write('        <table border="0" cellspacing="0" cellpadding="0" width="366">');
	document.write('          <tr> ');
	document.write('              ');
	document.write('            <td width="1%" align="right">');
	document.write('			<table width="366" border="0" cellspacing="0" cellpadding="0">');
	document.write('				<tr> ');
	
//花だよりの分岐。アナログ。。-----------------------
	if(over == "flower"){
		document.write("				<td width='57'><a href='/m_flower/'><img border='0' src='/sagasu_img/navi_02_2.gif' width='57' height='62' alt='三重の花'></a></td>");
	}else{
		document.write("				<td width='57'><a href='/m_flower/' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('Image44','','/sagasu_img/navi_02_2.gif',1)\"><img name='Image44' border='0' src='/sagasu_img/navi_02_1.gif' width='57' height='62' alt='三重の花'></a></td>");
	}

//みどころええとこの分岐。-----------------------
	if(over == "seasonal"){
		document.write("				<td width='58'><a href='/m_seasonal/index.html'><img border='0' src='/sagasu_img/navi_03_2.gif' width='58' height='62' alt='三重のみどころええとこ'></a></td>");
	}else{
	document.write("				<td width='58'><a href='/m_seasonal/index.html' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('Image45','','/sagasu_img/navi_03_2.gif',1)\"><img name='Image45' border='0' src='/sagasu_img/navi_03_1.gif' width='58' height='62' alt='三重のみどころええとこ'></a></td>");
	}

//体験の分岐。-----------------------
	if(over == "taiken"){
	document.write("				<td width='68'><a href='/m_taiken/index.html'><img border='0' src='/sagasu_img/navi_04_2.gif' width='68' height='62' alt='三重の体験'></a></td>");
	}else{
	document.write("				<td width='68'><a href='/m_taiken/index.html' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('Image46','','/sagasu_img/navi_04_2.gif',1)\"><img name='Image46' border='0' src='/sagasu_img/navi_04_1.gif' width='68' height='62' alt='三重の体験'></a></td>");
	}
//ニュース。分岐不要（システムのため）-----------------------
	document.write("				<td width='57'><a href='/m_news/' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('Image48','','/sagasu_img/navi_06_2.gif',1)\"><img name='Image48' border='0' src='/sagasu_img/navi_06_1.gif' width='57' height='62' alt='ニュース'></a></td>");
//お知らせ。分岐不要（システムのため）-----------------------
	document.write("				<td width='55'><a href='/m_news_member/' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('Image49','','/sagasu_img/navi_07_2.gif',1)\"><img name='Image49' border='0' src='/sagasu_img/navi_07_1.gif' width='55' height='62' alt='お知らせ'></a></td>");
//よくある質問の分岐。-----------------------
	if(over == "faq"){
	document.write("				<td width='71'><a href='/tools/faq.html'><img border='0' src='/sagasu_img/navi_08_2.gif' width='71' height='62' alt='よくある質問'></a></td>");
	}else{
	document.write("				<td width='71'><a href='/tools/faq.html' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('Image53','','/sagasu_img/navi_08_2.gif',1)\"><img name='Image53' border='0' src='/sagasu_img/navi_08_1.gif' width='71' height='62' alt='よくある質問'></a></td>");
	}

	document.write('				</tr>');
	document.write('			</table>');
	document.write('			</td>');
	document.write('          </tr>');
	document.write('            <tr> ');
	document.write('              ');
	document.write('            <td><img src="/sagasu_img/navi_shita.gif" width="366" height="8"></td>');
	document.write('            </tr>');
	document.write('        </table></td>');
}

//preload_Images() ロールオーバー画像の埋め込み。CSSにして整理した方が。。
var preload_imgs = new Array(); 
preload_imgs[0] = 	'/db/sagasu_img/navi_02_2.gif';
preload_imgs[1] =	'/top_img/sitemap02.gif';
preload_imgs[2] =	'/top_img/top_calendar_go_02.gif'
preload_imgs[3] =	'/sagasu_img/navi_01title_02.gif';
preload_imgs[4] =	'/sagasu_img/navi_02_2.gif';
preload_imgs[5] =	'/sagasu_img/navi_03_2.gif';
preload_imgs[6] =	'/sagasu_img/navi_04_2.gif';
preload_imgs[7] =	'/sagasu_img/navi_06_2.gif';
preload_imgs[8] =	'/sagasu_img/navi_07_2.gif';
preload_imgs[9] =	'/sagasu_img/navi_08_2.gif';
preload_imgs[10] =	'/sagasu_img/navi_05_2.gif';
preload_imgs[11] =	'/sagasu_img/cate01_02.gif';
preload_imgs[12] =	'/sagasu_img/cate02_02.gif';
preload_imgs[13] =	'/sagasu_img/cate03_02.gif';
preload_imgs[14] =	'/sagasu_img/cate04_02.gif';
preload_imgs[15] =	'/sagasu_img/cate05_02.gif';
preload_imgs[16] =	'/sagasu_img/cate06_02.gif';
preload_imgs[17] =	'/sagasu_img/cate07_02.gif';
preload_imgs[18] =	'/sagasu_img/cate08_02.gif';
preload_imgs[19] =	'/sagasu_img/cate09_02.gif';
preload_imgs[20] =	'/sagasu_img/cate10_02.gif';
preload_imgs[21] =	'/sagasu_img/cate11_02.gif';
preload_imgs[22] =	'/sagasu_img/cate12_02.gif';
preload_imgs[23] =	'/sagasu_img/banner_01_02.gif';
preload_imgs[24] =	'/sagasu_img/banner_02_02.gif';
preload_imgs[25] =	'/sagasu_img/banner_03_02.gif';
preload_imgs[26] =	'/sagasu_img/banner_04_02.gif';
preload_imgs[27] =	'/sagasu_img/banner_05_02.gif';
preload_imgs[28] =	'/sagasu_img/banner_06_02.gif';
preload_imgs[29] =	'/sagasu_img/banner_aboutmie02.gif';

//window.onload ロード時の動作

window.onload=function(){
	MM_preloadImages(preload_imgs);
}

//Right menu date set

function setTheDate() {
  theForm = document.event_search;
  dd = new Date();
  if(dd.getYear()>1900){
    theForm.elements[0].selectedIndex = dd.getYear() - 2002;
  }else{
    theForm.elements[0].selectedIndex = dd.getYear() + 1900 - 2002;
  }
  theForm.elements[1].selectedIndex = dd.getMonth();
  theForm.elements[2].selectedIndex = dd.getDate() - 1;
}



//ここから右メニューIE不具合回避分

//fontsize,print,favorite
function writeFontsize() {
	document.write('<tr><td id="Fontsize"><div class="Font">');
	document.write('<div class="SizeL"><img src="/sagasu_img/fontS.gif" width="25" height="25" border="0"></div>');
	document.write('<div class="SizeM"><img src="/sagasu_img/fontM.gif" width="25" height="25" border="0"></div>');
	document.write('<div class="SizeS"><img src="/sagasu_img/fontL.gif" width="25" height="25" border="0"></div>');
	document.write('</div></td></tr>');
}


function writePrint(){
	document.write('<tr><td id="Btm">');
	document.write('<div class="Print">');
	document.write('<a href="javascript:PrintPage()">');
	document.write('<img src="/sagasu_img/btm_print.gif" alt="このページを印刷" width="100" height="35" border="0">');
	document.write('</a>');
	document.write('</div>');
}

function PrintPage(){
	if(document.getElementById || document.layers){
		window.print();		
	}
}

function writeFavirite(){
	targetname = document.title;
	url = location.href;

	
	if(navigator.userAgent.indexOf("MSIE") > -1){
	document.write('<div>');
	document.write('<a href="#" onclick="window.external.AddFavorite(url, targetname)">');
	document.write('<img src="/sagasu_img/btm_favorite.gif" alt="お気に入りに登録" width="97" height="35" border="0">');
	document.write('</a>');
	document.write('</div>');
	document.write('</td></tr>');
	}

	else if(navigator.userAgent.indexOf("Firefox") > -1){
	target = new String("<a href=\"");
	target1 = target + url + "\" rel=\"sidebar\" title=\"" + targetname + "\">";
	document.write('<div>');
	//document.write('<a id="favorite" rel="sidebar" title="ページタイトル">');
	document.write(target1);
	document.write('<img src="/sagasu_img/btm_favorite.gif" alt="お気に入りに登録" width="97" height="35" border="0">');
	document.write('</a>');
	document.write('</div>');
	document.write('</td></tr>');
	}

	else if(navigator.userAgent.indexOf("Opera") > -1){
	target = new String("<a href=\"");
	target1 = target + url + "\" rel=\"sidebar\" title=\"" + targetname + "\">";
	document.write('<div>');
	//document.write('<a id="favorite" rel="sidebar" title="ページタイトル">');
	document.write(target1);
	document.write('<img src="/sagasu_img/btm_favorite.gif" alt="お気に入りに登録" width="97" height="35" border="0">');
	document.write('</a>');
	document.write('</div>');
	document.write('</td></tr>');
	}

	else {
		document.write('</td></tr>');
	}
}

// 20100225 jc Fujii ADD
function writeRightTopBanner() {
	document.write('<tr><td id="RightBanner">');
	document.write('<div><a href="https://www.kankomie.or.jp/treasure/"><img src="/sagasu_img/banner_treasure.gif" border="0"></a></div>');
	document.write('</td></tr>');
}
// 20100225 jc Fujii ADD