
function boxStartup() {
	if (!document.getElementById) { return false; }
	var i = 1, id, node;
	while(true) {
		id = 'box' + i;
		node = document.getElementById(id);
		if (node == null) { break; }
		else {
			node.onmouseover = mOver;
			node.onmouseout = mOut;
			i++;
		}
	}
}

function mOver() {
	var num = this.id;
	num = num.replace(/^box/, "");
	var nodeTitle = document.getElementById('boxTitle');
	var nodeBox = document.getElementById('box');
	var nodeBoxSec = document.getElementById('boxSec');
	var text = '', title = '', text2 = '';
	if (num == 1) {
		title = '<Home>';
		text= '当サイトのトップページへと移動します。';
		text2 = '';
	} else if (num == 2) {
		title = '<Information>';
		text = '当サイト『Mikla Gard』の概要、利用方法、管理人の情報等';
		text2 = '初めての方はこちらを先に読んでいただけると幸いです。';
	} else if (num == 3) {
		title = '<Card Wirth>';
		text = 'メインコンテンツでフリーソフト『CardWirth』を扱っています。';
		text2 = '当サイトでは背景素材（写真中心）を配布しています。';
	} else if (num == 4) {
		title = '<Photo Gallery>';
		text = 'お気に入りの写真を載せています。';
		text2 = '';
	} else if (num == 5) {
		title = '<Useful things>';
		text = 'Card WirthやPCなどで役立つ『知識』『テクニック』等を紹介。';
		text2 = '';
	} else if (num == 6) {
		title = '<Past article>';
		text = '過去のトップ記事『気ままに綴る雑記』を載せています。';
		text2 = '';
	} else if (num == 7) {
		title = '<History>';
		text = '当サイトの更新履歴＆管理人の遍歴です。';
		text2 = '';
	} else if (num == 8) {
		title = '<Communication>';
		text = '掲示板、チャットなどの交流コンテンツはこちらで扱っています。';
		text2 = '';
	} else if (num == 9) {
		title = '<Bookmarks>';
		text = '管理人の好きなサイトやお友達サイトのリンク集です。';
		text2 = '登録型CGIリンク集も有ります。';
	}
	nodeTitle.firstChild.nodeValue = title;
	nodeBox.firstChild.nodeValue = text;
	nodeBoxSec.firstChild.nodeValue = text2;
}

function mOut() {
	var num = this.id;
	num = num.replace(/^box/, "");
	var nodeTitle = document.getElementById('boxTitle');
	var nodeBox = document.getElementById('box');
	var nodeBoxSec = document.getElementById('boxSec');
	nodeTitle.firstChild.nodeValue = '';
	nodeBox.firstChild.nodeValue = '';
	nodeBoxSec.firstChild.nodeValue = '';
}
