/************************************************
[関数名]goNextPage(str)
[引数]str:パラメータ
[戻値型]なし
[概要]ページを遷移させる
++++++++++++++++++++++++++++++
   Date               Author
   --------      -----------
(1)2005.5.13      hypnos
*************************************************/
function goNextPage(str){

	//受け取った引数で飛び先を動的に変更
	switch(str){
		case "0":
			top.Main.location.href="./Top.html"
			break;
		case "1":
			top.Main.location.href="./Q&A/SaintQ&A_Index.html"
			break;
		case "2":
			top.Main.location.href="./Waza/Waza_Index.html"
			break;
		case "3":
			top.Main.location.href="./BeASaint/BeASaint.html"
			break;
		case "4":
			top.Main.location.href="./Chara/Chara.html"
			break;
		case "5":
			top.Main.location.href="./Roots/Roots_Index.html"
			break;
		case "6":
			top.Main.location.href="http://hypnos.hp.infoseek.co.jp/cgi-bin/yybbs/yybbs.cgi"
			break;
		case "7":
			top.Main.location.href="./link.html"
			break;
	}
}
/************************************************
[関数名]writeMessage()
[引数]なし
[戻値型]なし
[概要]時刻によって表示させるメッセージを変える
++++++++++++++++++++++++++++++
   Date               Author
   --------      -----------
(1)2005.5.13      hypnos
**************************************************/
function writeMessage(){
	//変数宣言
	var date;
	var h;
	var str = "";

	//現在の時刻を取得
	date = new Date();
	h = date.getHours(); 

	//表示するメッセージを取得
	switch(h){
		case 0:
		case 12:
			str = "双魚宮";
			break;
		case 1:
		case 13:
			str = "白羊宮";
			break;
		case 2:
		case 14:
			str = "金牛宮";
			break;
		case 3:
		case 15:
			str = "双児宮";
			break;
		case 4:
		case 16:
			str = "巨蟹宮";
			break;
		case 5:
		case 17:
			str = "獅子宮";
			break;
		case 6:
		case 18:
			str = "処女宮";
			break;
		case 7:
		case 19:
			str = "天秤宮";
			break;
		case 8:
		case 20:
			str = "天蠍宮";
			break;
		case 9:
		case 21:
			str = "人馬宮";
			break;
		case 10:
		case 22:
			str = "魔羯宮";
			break;
		case 11:
		case 23:
			str = "宝瓶宮";
			break;
	}

	//メッセージ書き出し
	document.write("あなたは今",str,"を通過中です。");
}
/************************************************
[関数名]mouseOver(obj)
[引数]obj:選択されたオブジェクト
[戻値型]なし
[概要]マウスが乗った時に色を変える
++++++++++++++++++++++++++++++
   Date               Author
   --------      -----------
(1)2005.5.26      hypnos
**************************************************/
function mouseOver(obj){
	obj.style.backgroundColor="#E8EEFC";
}
/************************************************
[関数名]mouseOut(obj)
[引数]obj:選択されたオブジェクト
[戻値型]なし
[概要]マウスが離れた時に色を戻す
++++++++++++++++++++++++++++++
   Date               Author
   --------      -----------
(1)2005.5.26      hypnos
**************************************************/
function mouseOut(obj){
	obj.style.backgroundColor="#FFFFFF";
}