
// rollover
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {  
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {  
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}
if(window.addEventListener) {
    window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
    window.attachEvent("onload", smartRollover);
}


// FormPopup
function openF1() {
	var url="https://www.anaihghotels.co.jp/cp_form/raikan.php";
	var target="raikan";
	var mywin=window.open(url, target,'width=734,height=745,location=0,toolbar=0,menubar=0,directories=0,status=1,scrollbars=1,resizable=1');
	mywin.moveTo(0,0);
	mywin.focus();
}

function openF2() {
	var url="https://www.anaihghotels.co.jp/cp_form/siryou.php";
	var target="siryou";
	var mywin=window.open(url, target,'width=734,height=745,location=0,toolbar=0,menubar=0,directories=0,status=1,scrollbars=1,resizable=1');
	mywin.moveTo(0,0);
	mywin.focus();
}

function openF3() {
	var url="https://www.anaihghotels.co.jp/cp_form/raikan.php";
	var target="raikan";
	var mywin=window.open(url, target,'width=734,height=745,location=0,toolbar=0,menubar=0,directories=0,status=1,scrollbars=1,resizable=1');
	mywin.moveTo(0,0);
	mywin.focus();
}

function openF4() {
	var url="https://www.anaihghotels.co.jp/cp_form/siryou.php";
	var target="siryou";
	var mywin=window.open(url, target,'width=734,height=745,location=0,toolbar=0,menubar=0,directories=0,status=1,scrollbars=1,resizable=1');
	mywin.moveTo(0,0);
	mywin.focus();
}


// Menu1
function menu1() {
document.write('<div style="padding:14px 24px 0px 0px;">');
document.write('<table width="274" height="10" border="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('<td align="left" valign="top"><a href="index.html"><img src="images/b_wt_off.gif" width="110" height="10" border="0" alt="" /></a></td>');
document.write('<td align="left" valign="top"><img src="images/spacer.gif" width="11" height="1" border="0" alt="" /></td>');
document.write('<td align="left" valign="top"><a href="http://www.anaihghotels.co.jp/corporate/index.html" target="_blank"><img src="images/b_gaiyou_off.gif" width="55" height="10" border="0" alt="" /></a></td>');
document.write('<td align="left" valign="top"><img src="images/spacer.gif" width="11" height="1" border="0" alt="" /></td>');
document.write('<td align="left" valign="top"><a href="http://www.ichotelsgroup.com/h/d/6c/490/ja/c/2/content/dec/cn/0/ja/tc/ps.htm" target="_blank"><img src="images/b_pp_off.gif" width="120" height="10" border="0" alt="" /></a></td>');
document.write('<td align="left" valign="top"><img src="images/spacer.gif" width="11" height="1" border="0" alt="" /></td>');
document.write('<td align="left" valign="top"><a href="sitemap/index.html"><img src="images/b_sitemap_off.gif" width="77" height="10" border="0" alt="" /></a></td>');
document.write('<td align="left" valign="top"><img src="images/spacer.gif" width="6" height="1" border="0" alt="" /></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');

}

// Menu2
function menu2() {
document.write('<div style="padding:14px 24px 0px 0px;">');
document.write('<table width="274" height="10" border="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('<td align="left" valign="top"><a href="../index.html"><img src="../images/b_wt_off.gif" width="110" height="10" border="0" alt="" /></a></td>');
document.write('<td align="left" valign="top"><img src="images/spacer.gif" width="11" height="1" border="0" alt="" /></td>');
document.write('<td align="left" valign="top"><a href="http://www.anaihghotels.co.jp/corporate/index.html" target="_blank"><img src="../images/b_gaiyou_off.gif" width="55" height="10" border="0" alt="" /></a></td>');
document.write('<td align="left" valign="top"><img src="../images/spacer.gif" width="11" height="1" border="0" alt="" /></td>');
document.write('<td align="left" valign="top"><a href="http://www.ichotelsgroup.com/h/d/6c/490/ja/c/2/content/dec/cn/0/ja/tc/ps.htm" target="_blank"><img src="../images/b_pp_off.gif" width="120" height="10" border="0" alt="" /></a></td>');
document.write('<td align="left" valign="top"><img src="../images/spacer.gif" width="11" height="1" border="0" alt="" /></td>');
document.write('<td align="left" valign="top"><a href="../sitemap/index.html"><img src="../images/b_sitemap_off.gif" width="77" height="10" border="0" alt="" /></a></td>');
document.write('<td align="left" valign="top"><img src="../images/spacer.gif" width="6" height="1" border="0" alt="" /></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');

}

// FormMenu1
function fmenu1() {
document.write('<table width="260" height="302" border="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('<td align="left" valign="top"><img src="images/spacer.gif" width="1" height="81" border="0" alt="" /></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="center" valign="top" height="28"><a href="javascript:openF1()"><img src="images/b_yoyaku_off.gif" width="220" height="28" border="0" alt="" /></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="left" valign="top"><img src="images/spacer.gif" width="1" height="8" border="0" alt="" /></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="center" valign="top" height="28"><a href="javascript:openF2()"><img src="images/b_siryou_off.gif" width="220" height="28" border="0" alt="" /></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="left" valign="top"><img src="images/spacer.gif" width="1" height="157" border="0" alt="" /></td>');
document.write('</tr>');
document.write('</table>');
}


// FormMenu2
function fmenu2() {
document.write('<table width="260" height="302" border="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('<td align="left" valign="top"><img src="../images/spacer.gif" width="1" height="81" border="0" alt="" /></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="center" valign="top" height="28"><a href="javascript:openF3()"><img src="../images/b_yoyaku_off.gif" width="220" height="28" border="0" alt="" /></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="left" valign="top"><img src="../images/spacer.gif" width="1" height="8" border="0" alt="" /></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="center" valign="top" height="28"><a href="javascript:openF4()"><img src="../images/b_siryou_off.gif" width="220" height="28" border="0" alt="" /></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="left" valign="top"><img src="../images/spacer.gif" width="1" height="157" border="0" alt="" /></td>');
document.write('</tr>');
document.write('</table>');
}



