
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function menuButton (n) {
	
	var menubuttons, blank, top, shien, profile, plan, comment, writing, form, pres, cases, attract, project, blog, english, graph, chinese_sim;
	
	// debug
	//alert (n);
	
	//htmlテンプレート
    blank = '    <td width="1" height="15" valign="top" background="img/left_bg.gif" bgcolor="#000066">'
	 + '<IMG src="img/left_bg.gif" width="1" height="2" vspace="0">' 
	 + '<BR>';
	 	
	if (n == 1) {
		top = '<IMG src="img/m_top2.gif" alt="インバウンドの魅力・最新情報" name="Image001" width="105" height="35" vspace="1" border="0">'+ '<BR>';
	} else {
		top = '<A href="http://www.jissen-inb.com/index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image001\',\'\',\'img/m_top2.gif\',1)">'
	 + '<IMG src="img/m_top1.gif" alt="インバウンドの魅力・最新情報" name="Image001" width="105" height="35" vspace="1" border="0">'
	 + '</A>' + '<BR>';
	}
	
	if (n == 2) {
		shien = '<IMG src="img/m_shien2.gif" alt="インバウンド集客支援" name="Image002" width="105" height="35" vspace="1" border="0">'+ '<BR>';
	} else {
	 
     shien = '<A href="http://www.jissen-inb.com/shien.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image002\',\'\',\'img/m_shien2.gif\',1)">'
	 + '<IMG src="img/m_shien1.gif" alt="インバウンド集客支援" name="Image002" width="105" height="35" vspace="1" border="0">'
	 + '</A>' + '<BR>';
	}

	profile =  ' <a href="http://profile.allabout.co.jp/fs/inbound-ono" target="_blank">'
	 + '<img src="img/allabout1.gif" alt="オールアバウト専門家登録してます" width="105" height="35" vspace="1" border="0">'
     + '</A>' + '<BR>';


	 if (n == 4) {

	 attract = '<IMG src="img/m_attract2.gif" alt="海外予約サイトで集客を増やす" name="Image004" width="105" height="35" vspace="1" border="0" id="Image004">'
     +  '<BR>';
	 }else {
		 attract = ' <A href="http://www.jissen-inb.com/attract.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image004\',\'\',\'img/m_attract2.gif\',1)">'
	 + '<IMG src="img/m_attract1.gif" alt="海外予約サイトで集客を増やす" name="Image004" width="105" height="35" vspace="1" border="0" id="Image004">'
     + '</A>' + '<BR>';
	 }

	 if (n == 5) {

	 comment = '<IMG src="img/m_comments2.gif" alt="旅館主人・女将からのお便り" name="Image005" width="105" height="35" vspace="1" border="0" id="Image005">'
     +  '<BR>';
	 }else {
		 comment = ' <A href="http://www.jissen-inb.com/comment.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image005\',\'\',\'img/m_comments2.gif\',1)">'
	 + '<IMG src="img/m_comments1.gif" alt="旅館主人・女将からのお便り" name="Image005" width="105" height="35" vspace="1" border="0" id="Image005">'
     + '</A>' + '<BR>';
	 }

	 if (n == 6) {
		 writing = '<IMG src="img/m_activities2.gif" alt="ＴＶ取材・掲載誌、講演・研修" name="Image006" width="105" height="35" vspace="1" border="0" id="Image006">'+ '<BR>';
	 } else {

	 writing = ' <A href="http://www.jissen-inb.com/articles.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image006\',\'\',\'img/m_activities2.gif\',1)">'
	 + '<IMG src="img/m_activities1.gif" alt="ＴＶ取材・掲載誌、講演・研修" name="Image19" width="105" height="35" vspace="1" border="0" id="Image006">'
     + '</A>' + '<BR>';
	 }

	 if (n == 7) {
		 graph = '<IMG src="img/m_graphs2.gif" alt="送客数のグラフ" name="Image007" width="105" height="35" vspace="1" border="0" id="Image007">'+ '<BR>';
	 } else {

	 graph = ' <A href="http://www.jissen-inb.com/data.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image007\',\'\',\'img/m_graphs2.gif\',1)">'
	 + '<IMG src="img/m_graphs1.gif" alt="送客数のグラフ" name="Image007" width="105" height="35" vspace="1" border="0" id="Image007">'
     + '</A>' + '<BR>';
	 }

	 if (n == 8) {
		 cases = '<IMG src="img/m_case2.gif" alt="インバウンド実績と事例" name="Image008" width="105" height="35" vspace="1" border="0" id="Image16">'
     +  '<BR>';
	 } else {

	 cases = ' <A href="http://www.jissen-inb.com/case.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image008\',\'\',\'img/m_case2.gif\',1)">'
	 + '<IMG src="img/m_case1.gif" alt="インバウンド実績と事例" name="Image008" width="105" height="35" vspace="1" border="0" id="Image008">'
     + '</A>' + '<BR>';
	 }

	 if (n == 9) {
		 form = '<IMG src="img/m_contact2.gif" alt="お申込み・お問合せ" name="Image009" width="105" height="35" vspace="1" border="0">' + '<BR>';
	 } else {

     form =  ' <A href="http://www.jissen-inb.com/mform.php?mm_id=jissen-inb" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image009\',\'\',\'img/m_contact2.gif\',1)">'
	 + '<IMG src="img/m_contact1.gif" alt="お申込み・お問合せ" name="Image009" width="105" height="35" vspace="1" border="0">'
     + '</A>' + '<BR>';
	 }
	 
	 if (n == 10) {
		 pres = '<IMG src="img/m_prof2.gif" alt="代表ご挨拶" name="Image010" width="105" height="35" vspace="1" border="0">'
      + '<BR>';
	 } else {

	 pres = ' <A href="http://www.jissen-inb.com/prof.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image010\',\'\',\'img/m_prof2.gif\',1)">'
	 + '<IMG src="img/m_prof1.gif" alt="代表ご挨拶" name="Image010" width="105" height="35" vspace="1" border="0">'
     + '</A>' + '<BR>';
	 }

if (n == 11) {
		 project = '<IMG src="img/m_proj2.gif" alt="企業様向けプロジェクト・コンサルティング" name="Image011" width="105" height="35" vspace="1" border="0" id="Image011">'
      + '<BR>';
	 } else {

	 project = ' <A href="http://www.jissen-inb.com/project.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image011\',\'\',\'img/m_proj2.gif\',1)">'
	 + '<IMG src="img/m_proj1.gif" alt="企業様向けプロジェクト・コンサルティング" name="Image20" width="105" height="35" vspace="1" border="0" id="Image011">'
     + '</A>' + '<BR>';
	 }

	 if (n == 12) {
		 english = '<IMG src="img/m_english2.gif" alt="English" name="Image18" width="105" height="35" vspace="1" border="0" id="Image012">'
      + '<BR>';
	 } else {

	 english = ' <A href="http://www.jissen-inb.com/english.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image012\',\'\',\'img/m_english2.gif\',1)">'
	 + '<IMG src="img/m_english1.gif" alt="English" name="Image012" width="105" height="35" vspace="1" border="0" id="Image012">'
     + '</A>' + '<BR>';
	 }
	 
	 if (n == 13) {
		 chinese_sim = '<IMG src="img/m_simpChinese2.gif" alt="Simplified Chinese" name="Image013" width="105" height="35" vspace="1" border="0" id="Image013">'
      + '<BR>';
	 } else {

      chinese_sim = '<A href="http://www.jissen-inb.com/profile_chinese_simp.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image013\',\'\',\'img/m_simpChinese2.gif\',1)">'
     + '<IMG src="img/m_simpChinese1.gif" alt="Simplified Chinese" name="Image013" width="105" height="35" vspace="1" border="0" id="Image013">'
     + '</A>' + '<BR>';
	 }

// 削除された内容
if (n == 3) {
		 plan = '<IMG src="img/m_plan2.gif" alt="集客プラン" name="Image13" width="105" height="35" vspace="1" border="0">'+ '<BR>';
	 } else {
        plan = ' <A href="http://www.jissen-inb.com/plan.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image13\',\'\',\'img/m_plan2.gif\',1)">'
	 + '<IMG src="img/m_plan1.gif" alt="集客プラン" name="Image13" width="105" height="35" vspace="1" border="0">'
	 + '</A>' + '<BR>';
	 }
	 
	 blog = ' <a href="http://www.go-nagano.net/blog" target="_blank">'
	 + '<img src="img/nagano.gif" alt="長野県公認の英語ブログ更新中" width="105" height="35" vspace="1" border="0">'
     + '</A>' + '<BR>';
     
	
	menubuttons = blank + top + shien + profile  + attract+ comment + writing + graph  + cases + form + pres  + project + english + chinese_sim + '</td>';
    //書き出し
    document.write(menubuttons)
}

function writeTitle() {
	// debug
    document.write('<title>訪日外国人:インバウンドの集客 導入２５０軒 送客毎年１２０％増 中小旅館向け外国人観光客のマーケティングサービス (株)インバウンドにっぽん 実践！インバウンド</title>');
}