﻿// プルダウンメニュー

var menu_num = 0;
function pullDownCR() {
 PullDown1.style.visibility = "hidden";
 PullDown2.style.visibility = "hidden";
 PullDown3.style.visibility = "hidden";
 PullDown32.style.visibility = "hidden";
 PullDown33.style.visibility = "hidden";
 PullDown4.style.visibility = "hidden";
 MainBlock.style.top = "190px";
}

function pullDown1() {
 if( menu_num == 1){
   PullDown1.style.visibility = "hidden";
   MainBlock.style.top = "80px";
   menu_num = 0;
 }else {
   pullDownCR();
   PullDown1.style.visibility = "visible";
   menu_num = 1;
 }
}

function pullDown2() {
 if( menu_num == 2){
   PullDown2.style.visibility = "hidden";
   MainBlock.style.top = "80px";
   menu_num = 0;
 }else {
   pullDownCR();
   PullDown2.style.visibility = "visible";
   menu_num = 2;
 }
}
function pullDown3() {
 if( menu_num == 3){
   PullDown3.style.visibility = "hidden";
   MainBlock.style.top = "80px";
   menu_num = 0;
 }else {
   pullDownCR();
   PullDown3.style.visibility = "visible";
   menu_num = 3;
 }
}
function pullDown32() {
 if( menu_num == 32){
   PullDown32.style.visibility = "hidden";
   MainBlock.style.top = "80px";
   menu_num = 0;
 }else {
   pullDownCR();
   PullDown32.style.visibility = "visible";
   menu_num = 32;
 }
}
function pullDown33() {
 if( menu_num == 33){
   PullDown33.style.visibility = "hidden";
   MainBlock.style.top = "80px";
   menu_num = 0;
 }else {
   pullDownCR();
   PullDown33.style.visibility = "visible";
   menu_num = 33;
 }
}
function pullDown4() {
 if( menu_num == 4){
   PullDown4.style.visibility = "hidden";
   MainBlock.style.top = "80px";
   menu_num = 0;
 }else {
   pullDownCR();
   PullDown4.style.visibility = "visible";
   menu_num = 4;
 }
}


function topMenu(doc_root){
	var menu_doc;
	menu_doc = '\
<div id="TopMenu">\
<a href="index.html">[Debian（etch)でいこう]</a>\
<a href="javaScript:pullDown1()">＜インストール＞</a>\
<a href="javaScript:pullDown2()">＜アプリケーション＞</a>\
<a href="javaScript:pullDown3()">＜システム管理1＞</a>\
<a href="javaScript:pullDown32()">＜システム管理2＞</a>\
<a href="javaScript:pullDown33()">＜システム管理3＞</a>\
<a href="javaScript:pullDown4()">＜番外編＞</a>\
<hr>\
<div id="PullDown1" style="visibility: hidden;">\
\
<a href="virtualbox2.html">VirtualBox のインストール</a><br>\
\
\
<a href="install.html">etchのインストール</a><br>\
\
\
<a href="euc-jp.html">ja_JP.EUC-JPロカールの追加</a><br>\
\
\
</div>\
\
\
<div id="PullDown2" style="visibility: hidden;">\
\
\
<a href="gaim.html">gaimの使い方</a><br>\
\
\
<a href="xchat.html">xchatの使い方</a><br>\
\
\
<a href="mp3.html">MP3を聞こう</a><br>\
\
\
<a href="dvd.html">DVDを見よう</a><br>\
\
\
<a href="firefox.html">Firefoxを使おう</a><br>\
\
\
<a href="tunderbird.html">Thunderbirdを使おう</a><br>\
\
\
</div>\
\
\
<div id="PullDown3" style="visibility: hidden;">\
\
<a href="samba1.html">windowsネットワーク共有フォルダの読み書き１（一時的に使用する）</a><br>\
\
\
<a href="samba2.html">windowsネットワーク共有フォルダの読み書き２（恒久的に使用する）</a><br>\
\
\
<a href="ssh1.html">sshの使い方１（インストール編）</a><br>\
\
\
<a href="ssh2.html">sshの使い方２(telnet編）</a><br>\
\
\
<a href="ssh3.html">sshの使い方３(ftp編）</a><br>\
\
\
<a href="xdmcp.html">X\
windowでリモートアクセス（XDMCP編）</a><br>\
\
\
<a href="vnc.html">VNCでリモートアクセス</a><br>\
\
\
</div>\
\
\
<div id="PullDown32" style="visibility: hidden;">\
\
\
<a href="kernel.html">Debian流カーネルのコンパイル</a><br>\
\
\
<a href="installer1.html">ソフトウェアのインストールと削除１（GUIによる方法）</a><br>\
\
\
<a href="installer2.html">ソフトウェアのインストールと削除２（aptとdpkgとalienに\
よる方法）</a><br>\
\
\
<a href="font.html">フォントの追加</a><br>\
\
\
</div>\
\
\
<div id="PullDown33" style="visibility: hidden;">\
\
\
<a href="service.html">デーモン（サービス）の起動と停止、初期化処理とランレベル</a><br>\
\
\
<a href="module.html">モジュール(デバイスドライバー）の読み込みと開放</a><br>\
\
\
<a href="network.html">ネットワークの設定</a><br>\
\
\
<a href="user.html">ユーザーの追加と削除</a><br>\
\
\
<a href="passwd.html">パスワードの変更</a><br>\
\
\
</div>\
\
\
<div id="PullDown4" style="visibility: hidden;">\
\
<a href="linuxaddtions.html">VBoxLinuxAdditionsのインストール</a><br>\
<a href="vmware.html">VMware Player に etch をインストール</a><br>\
\
\
<a href="virturalpc.html">VirtualPC 2004　に etch をインストール</a><br>\
\
\
<a href="kasou.html">仮想PC速度比較</a><br>\
\
\
<a href="vesa.html">vesaドライバーでqemuの２D性能UP</a><br>\
\
\
<a href="opengl.html">OpenGLのゲームで遊ぶ</a><br>\
\
\
</div>\
\
</div>\
\
\
';
document.open();
document.write(menu_doc);
document.close();
}
