//メニューにメニュー文字を指定するための変数の宣言と初期化
var TTL_MENU=""		//変更しないこと

//初期設定（メニューの背景画像）
var ImgBG = "bgb3b3b3.jpg";

//バナー指定
var ImgBana = "　";

//フッター画像指定
var ImgFTR = "　";

//初期設定（メニューの表示位置）
var mn_h_position = 10;	//画面左端からの距離
var mn_v_position = 10;	//画面上端からの距離
var mn_width = 170;	//メニューの幅

//初期設定（メニューの背景色）
var BGcolor = "#ffffff";

//初期設定（メニューのフォントの色）
var FTcolor = "#FFFF00";

//初期設定：メニューバーのアイテム数を指定します
var MENU_CNT=12

//初期設定：メニューバーのリンク先アドレスを""の間に指定します。ない場合は、#
//メニューのアイテム数だけ登録します。MENU_LINK[n] の、[n] は、アイテム番号
var MENU_LINK=new Array();

MENU_LINK[1] ='　';
MENU_LINK[2] ='<a href="http://www.karanavi.jp/index.php">';
MENU_LINK[3] ='<a href="http://www.karanavi.jp/desk/shop/index.php3">';
MENU_LINK[4] ='<a href="http://www.karanavi.jp/desk/sinpu/index.php3">';
MENU_LINK[5] ='<a href="http://www.karanavi.jp/desk/lesson/index.php3">';
MENU_LINK[6] ='<a href="http://www.karanavi.jp/desk/fortune/index.php3">';
MENU_LINK[7] ='<a href="http://www.karanavi.jp/desk/park/index.php3">';
MENU_LINK[8] ='<a href="http://www.karanavi.jp/desk/hit/index.php3">';
MENU_LINK[9] ='<a href="http://www.karanavi.jp/desk/king/index.php3">';
MENU_LINK[10] ='<a href="http://www.karanavi.jp/desk/infor/index.php3">';
MENU_LINK[11] ='<a href="http://www.karanavi.jp/desk/infor/mobile.php3">';
MENU_LINK[12] ='';
//初期設定：メニューバーに表示する文字列を''の間に指定します。空白は全角で！
//メニューのアイテム数だけ登録します。MENU_LINK[n] の、[n] は、アイテム番号
var MENU_NAME=new Array();

//<img name="画像ID" alt="Sample" width="100" height="100" src="元画像URL" lesson.fortunemobile
//onmouseover="document.画像ID.src='変更画像URL';" onmouseout="document.画像ID.src='元画像URL'>

MENU_NAME[1] ='<img src="http://www.karanavi.jp/desk/img/toplogos.gif" height="24" width="156" border="0">';
MENU_NAME[2] ='<img  alt="button1" width="156" height="35" src="http://www.karanavi.jp/desk/img/m_home.gif" onmouseover="this.src=\'http://www.karanavi.jp/desk/img/m_home2.gif\'" onmouseout="this.src=\'http://www.karanavi.jp/desk/img/m_home.gif\'" border="0">';
MENU_NAME[3] ='<img  alt="button1" width="156" height="50" src="http://www.karanavi.jp/desk/img/m_shop.gif" onmouseover="this.src=\'http://www.karanavi.jp/desk/img/m_shop2.gif\'" onmouseout="this.src=\'http://www.karanavi.jp/desk/img/m_shop.gif\'" border="0">';
MENU_NAME[4] ='<img  alt="button1" width="156" height="35" src="http://www.karanavi.jp/desk/img/m_new.gif" onmouseover="this.src=\'http://www.karanavi.jp/desk/img/m_new2.gif\'" onmouseout="this.src=\'http://www.karanavi.jp/desk/img/m_new.gif\'" border="0">';
MENU_NAME[5] ='<img  alt="button1" width="156" height="35" src="http://www.karanavi.jp/desk/img/m_lesson.gif" onmouseover="this.src=\'http://www.karanavi.jp/desk/img/m_lesson2.gif\'" onmouseout="this.src=\'http://www.karanavi.jp/desk/img/m_lesson.gif\'" border="0">';
MENU_NAME[6] ='<img  alt="button1" width="156" height="35" src="http://www.karanavi.jp/desk/img/m_fortune.gif" onmouseover="this.src=\'http://www.karanavi.jp/desk/img/m_fortune2.gif\'" onmouseout="this.src=\'http://www.karanavi.jp/desk/img/m_fortune.gif\'" border="0">';
MENU_NAME[7] ='<img  alt="button1" width="156" height="35" src="http://www.karanavi.jp/desk/img/m_park.gif" onmouseover="this.src=\'http://www.karanavi.jp/desk/img/m_park2.gif\'" onmouseout="this.src=\'http://www.karanavi.jp/desk/img/m_park.gif\'" border="0">';
MENU_NAME[8] ='<img  alt="button1" width="156" height="35" src="http://www.karanavi.jp/desk/img/m_hit.gif" onmouseover="this.src=\'http://www.karanavi.jp/desk/img/m_hit2.gif\'" onmouseout="this.src=\'http://www.karanavi.jp/desk/img/m_hit.gif\'" border="0">';
MENU_NAME[9] ='<img  alt="button1" width="156" height="35" src="http://www.karanavi.jp/desk/img/m_king.gif" onmouseover="this.src=\'http://www.karanavi.jp/desk/img/m_king2.gif\'" onmouseout="this.src=\'http://www.karanavi.jp/desk/img/m_king.gif\'" border="0">';
MENU_NAME[10] ='<img  alt="button1" width="156" height="35" src="http://www.karanavi.jp/desk/img/m_info.gif" onmouseover="this.src=\'http://www.karanavi.jp/desk/img/m_info2.gif\'" onmouseout="this.src=\'http://www.karanavi.jp/desk/img/m_info.gif\'" border="0">';
MENU_NAME[11] ='<img  alt="button1" width="156" height="35" src="http://www.karanavi.jp/desk/img/m_mobile.gif" onmouseover="this.src=\'http://www.karanavi.jp/desk/img/m_mobile2.gif\'" onmouseout="this.src=\'http://www.karanavi.jp/desk/img/m_mobile.gif\'" border="0">';
MENU_NAME[12] ='<img src="kantan_a.gif" alt="" height="40" width="156" border="0"><br><img src="http://www.karanavi.jp/desk/img/karanavi_qrcode.jpg" alt="" height="120" width="120" border="0">';
var TTL_MENU=""

function load_menu(){
for (i = 1; i <= MENU_CNT; i++) {
TTL_MENU=TTL_MENU+'<tr height="35"><td valign="top" width="170" align="center" bgcolor="#b3b3b3" height = "100%">'+MENU_LINK[i]+MENU_NAME[i]+'</A><br></td></tr>';
}
document.write("<DIV id=menu>");
document.write("<table border='0' cellspacing='2' cellpadding='2' width='170' height='422' >");
document.write(TTL_MENU);
document.write("</table>");
document.write("</DIV>");
}

//メニューの表示 
function movemenu(){
if(document.all){
	MN_Left=document.body.scrollLeft;MN_Top=document.body.scrollTop;
	document.all("menu").style.left=MN_Left + mn_h_position;
	document.all("menu").style.top=MN_Top + mn_v_position;
	document.all("menu").style.visibility="visible";
}else if(document.layers){
	MN_Left=window.pageXOffset;MN_Top=window.pageYOffset;
	document.layers["menu"].left=MN_Left + mn_h_position;
	document.layers["menu"].top=MN_Top + mn_v_position;
	document.layers["menu"].visibility="show";
}else if(document.getElementById){
	MN_Left=window.pageXOffset;MN_Top=window.pageYOffset;
	document.getElementById("menu").style.left=MN_Left + mn_h_position;
	document.getElementById("menu").style.top=MN_Top + mn_v_position;
	document.getElementById("menu").style.visibility="visible";
}
TimerID = setTimeout("movemenu()",100);
}

