﻿// 日の出・日の入り時刻表示スクリプト (c)CHIGA

// 表示内容の定義(月,日,日出時刻,日没時刻)
myTbl = new Array(
1,1,"6:48","16:34",
1,2,"6:48","16:35",
1,3,"6:48","16:36",
1,4,"6:48","16:37",
1,5,"6:48","16:37",
1,6,"6:48","16:38",
1,7,"6:48","16:39",
1,8,"6:48","16:40",
1,9,"6:48","16:41",
1,10,"6:48","16:42",
1,11,"6:48","16:43",
1,12,"6:48","16:44",
1,13,"6:48","16:45",
1,14,"6:47","16:46",
1,15,"6:47","16:47",
1,16,"6:47","16:48",
1,17,"6:47","16:49",
1,18,"6:46","16:50",
1,19,"6:46","16:51",
1,20,"6:45","16:52",
1,21,"6:45","16:53",
1,22,"6:45","16:54",
1,23,"6:44","16:55",
1,24,"6:44","16:56",
1,25,"6:43","16:57",
1,26,"6:42","16:58",
1,27,"6:42","16:59",
1,28,"6:41","17:00",
1,29,"6:40","17:01",
1,30,"6:40","17:02",
1,31,"6:39","17:03",
2,1,"6:38","17:04",
2,2,"6:37","17:05",
2,3,"6:37","17:06",
2,4,"6:36","17:07",
2,5,"6:35","17:08",
2,6,"6:34","17:09",
2,7,"6:33","17:10",
2,8,"6:32","17:11",
2,9,"6:31","17:13",
2,10,"6:30","17:14",
2,11,"6:29","17:15",
2,12,"6:28","17:16",
2,13,"6:27","17:17",
2,14,"6:26","17:18",
2,15,"6:25","17:19",
2,16,"6:24","17:20",
2,17,"6:23","17:21",
2,18,"6:22","17:22",
2,19,"6:20","17:23",
2,20,"6:19","17:24",
2,21,"6:18","17:25",
2,22,"6:17","17:26",
2,23,"6:16","17:26",
2,24,"6:14","17:27",
2,25,"6:13","17:28",
2,26,"6:12","17:29",
2,27,"6:11","17:30",
2,28,"6:09","17:31",
3,1,"6:08","17:32",
3,2,"6:07","17:33",
3,3,"6:05","17:34",
3,4,"6:04","17:35",
3,5,"6:03","17:36",
3,6,"6:01","17:37",
3,7,"6:00","17:38",
3,8,"5:59","17:39",
3,9,"5:57","17:39",
3,10,"5:56","17:40",
3,11,"5:54","17:41",
3,12,"5:53","17:42",
3,13,"5:52","17:43",
3,14,"5:50","17:44",
3,15,"5:49","17:45",
3,16,"5:47","17:46",
3,17,"5:46","17:46",
3,18,"5:44","17:47",
3,19,"5:43","17:48",
3,20,"5:42","17:49",
3,21,"5:40","17:50",
3,22,"5:39","17:51",
3,23,"5:37","17:52",
3,24,"5:36","17:52",
3,25,"5:34","17:53",
3,26,"5:33","17:54",
3,27,"5:31","17:55",
3,28,"5:30","17:56",
3,29,"5:29","17:57",
3,30,"5:27","17:57",
3,31,"5:26","17:58",
4,1,"5:24","17:59",
4,2,"5:23","18:00",
4,3,"5:21","18:01",
4,4,"5:20","18:02",
4,5,"5:19","18:02",
4,6,"5:17","18:03",
4,7,"5:16","18:04",
4,8,"5:14","18:05",
4,9,"5:13","18:06",
4,10,"5:12","18:07",
4,11,"5:10","18:07",
4,12,"5:09","18:08",
4,13,"5:08","18:09",
4,14,"5:06","18:10",
4,15,"5:05","18:11",
4,16,"5:04","18:12",
4,17,"5:02","18:12",
4,18,"5:01","18:13",
4,19,"5:00","18:14",
4,20,"4:58","18:15",
4,21,"4:57","18:16",
4,22,"4:56","18:17",
4,23,"4:55","18:18",
4,24,"4:53","18:18",
4,25,"4:52","18:19",
4,26,"4:51","18:20",
4,27,"4:50","18:21",
4,28,"4:49","18:22",
4,29,"4:48","18:23",
4,30,"4:46","18:23",
5,1,"4:45","18:24",
5,2,"4:44","18:25",
5,3,"4:43","18:26",
5,4,"4:42","18:27",
5,5,"4:41","18:28",
5,6,"4:40","18:29",
5,7,"4:39","18:29",
5,8,"4:38","18:30",
5,9,"4:37","18:31",
5,10,"4:36","18:32",
5,11,"4:35","18:33",
5,12,"4:34","18:34",
5,13,"4:34","18:34",
5,14,"4:33","18:35",
5,15,"4:32","18:36",
5,16,"4:31","18:37",
5,17,"4:30","18:38",
5,18,"4:30","18:38",
5,19,"4:29","18:39",
5,20,"4:28","18:40",
5,21,"4:28","18:41",
5,22,"4:27","18:42",
5,23,"4:26","18:42",
5,24,"4:26","18:43",
5,25,"4:25","18:44",
5,26,"4:25","18:44",
5,27,"4:24","18:45",
5,28,"4:24","18:46",
5,29,"4:23","18:47",
5,30,"4:23","18:47",
5,31,"4:23","18:48",
6,1,"4:22","18:49",
6,2,"4:22","18:49",
6,3,"4:22","18:50",
6,4,"4:21","18:50",
6,5,"4:21","18:51",
6,6,"4:21","18:52",
6,7,"4:21","18:52",
6,8,"4:20","18:53",
6,9,"4:20","18:53",
6,10,"4:20","18:54",
6,11,"4:20","18:54",
6,12,"4:20","18:54",
6,13,"4:20","18:55",
6,14,"4:20","18:55",
6,15,"4:20","18:56",
6,16,"4:20","18:56",
6,17,"4:20","18:56",
6,18,"4:20","18:57",
6,19,"4:21","18:57",
6,20,"4:21","18:57",
6,21,"4:21","18:57",
6,22,"4:21","18:58",
6,23,"4:21","18:58",
6,24,"4:22","18:58",
6,25,"4:22","18:58",
6,26,"4:22","18:58",
6,27,"4:23","18:58",
6,28,"4:23","18:58",
6,29,"4:23","18:58",
6,30,"4:24","18:58",
7,1,"4:24","18:58",
7,2,"4:25","18:58",
7,3,"4:25","18:58",
7,4,"4:26","18:58",
7,5,"4:26","18:58",
7,6,"4:27","18:57",
7,7,"4:27","18:57",
7,8,"4:28","18:57",
7,9,"4:28","18:57",
7,10,"4:29","18:56",
7,11,"4:29","18:56",
7,12,"4:30","18:56",
7,13,"4:31","18:55",
7,14,"4:31","18:55",
7,15,"4:32","18:54",
7,16,"4:33","18:54",
7,17,"4:33","18:53",
7,18,"4:34","18:53",
7,19,"4:35","18:52",
7,20,"4:35","18:52",
7,21,"4:36","18:51",
7,22,"4:37","18:50",
7,23,"4:38","18:50",
7,24,"4:38","18:49",
7,25,"4:39","18:48",
7,26,"4:40","18:48",
7,27,"4:41","18:47",
7,28,"4:41","18:46",
7,29,"4:42","18:45",
7,30,"4:43","18:44",
7,31,"4:44","18:44",
8,1,"4:44","18:43",
8,2,"4:45","18:42",
8,3,"4:46","18:41",
8,4,"4:47","18:40",
8,5,"4:48","18:39",
8,6,"4:48","18:38",
8,7,"4:49","18:37",
8,8,"4:50","18:36",
8,9,"4:51","18:35",
8,10,"4:52","18:34",
8,11,"4:52","18:32",
8,12,"4:53","18:31",
8,13,"4:54","18:30",
8,14,"4:55","18:29",
8,15,"4:56","18:28",
8,16,"4:56","18:27",
8,17,"4:57","18:25",
8,18,"4:58","18:24",
8,19,"4:59","18:23",
8,20,"4:59","18:22",
8,21,"5:00","18:20",
8,22,"5:01","18:19",
8,23,"5:02","18:18",
8,24,"5:03","18:17",
8,25,"5:03","18:15",
8,26,"5:04","18:14",
8,27,"5:05","18:12",
8,28,"5:06","18:11",
8,29,"5:07","18:10",
8,30,"5:07","18:08",
8,31,"5:08","18:07",
9,1,"5:09","18:06",
9,2,"5:10","18:04",
9,3,"5:10","18:03",
9,4,"5:11","18:01",
9,5,"5:12","18:00",
9,6,"5:13","17:58",
9,7,"5:13","17:57",
9,8,"5:14","17:56",
9,9,"5:15","17:54",
9,10,"5:16","17:53",
9,11,"5:16","17:51",
9,12,"5:17","17:50",
9,13,"5:18","17:48",
9,14,"5:19","17:47",
9,15,"5:20","17:45",
9,16,"5:20","17:44",
9,17,"5:21","17:42",
9,18,"5:22","17:41",
9,19,"5:23","17:39",
9,20,"5:23","17:38",
9,21,"5:24","17:36",
9,22,"5:25","17:35",
9,23,"5:26","17:33",
9,24,"5:27","17:32",
9,25,"5:27","17:31",
9,26,"5:28","17:29",
9,27,"5:29","17:28",
9,28,"5:30","17:26",
9,29,"5:30","17:25",
9,30,"5:31","17:23",
10,1,"5:32","17:22",
10,2,"5:33","17:20",
10,3,"5:34","17:19",
10,4,"5:34","17:17",
10,5,"5:35","17:16",
10,6,"5:36","17:15",
10,7,"5:37","17:13",
10,8,"5:38","17:12",
10,9,"5:39","17:10",
10,10,"5:39","17:09",
10,11,"5:40","17:08",
10,12,"5:41","17:06",
10,13,"5:42","17:05",
10,14,"5:43","17:04",
10,15,"5:44","17:02",
10,16,"5:45","17:01",
10,17,"5:46","17:00",
10,18,"5:46","16:58",
10,19,"5:47","16:57",
10,20,"5:48","16:56",
10,21,"5:49","16:55",
10,22,"5:50","16:53",
10,23,"5:51","16:52",
10,24,"5:52","16:51",
10,25,"5:53","16:50",
10,26,"5:54","16:49",
10,27,"5:55","16:48",
10,28,"5:56","16:46",
10,29,"5:57","16:45",
10,30,"5:58","16:44",
10,31,"5:58","16:43",
11,1,"5:59","16:42",
11,2,"6:00","16:41",
11,3,"6:01","16:40",
11,4,"6:02","16:39",
11,5,"6:03","16:38",
11,6,"6:04","16:37",
11,7,"6:05","16:36",
11,8,"6:06","16:36",
11,9,"6:07","16:35",
11,10,"6:08","16:34",
11,11,"6:09","16:33",
11,12,"6:10","16:32",
11,13,"6:11","16:32",
11,14,"6:12","16:31",
11,15,"6:13","16:30",
11,16,"6:14","16:30",
11,17,"6:15","16:29",
11,18,"6:16","16:28",
11,19,"6:17","16:28",
11,20,"6:18","16:27",
11,21,"6:19","16:27",
11,22,"6:20","16:26",
11,23,"6:21","16:26",
11,24,"6:22","16:25",
11,25,"6:23","16:25",
11,26,"6:24","16:25",
11,27,"6:25","16:24",
11,28,"6:26","16:24",
11,29,"6:27","16:24",
11,30,"6:28","16:24",
12,1,"6:29","16:24",
12,2,"6:30","16:23",
12,3,"6:31","16:23",
12,4,"6:32","16:23",
12,5,"6:32","16:23",
12,6,"6:33","16:23",
12,7,"6:34","16:23",
12,8,"6:35","16:23",
12,9,"6:36","16:23",
12,10,"6:37","16:23",
12,11,"6:37","16:24",
12,12,"6:38","16:24",
12,13,"6:39","16:24",
12,14,"6:40","16:24",
12,15,"6:40","16:25",
12,16,"6:41","16:25",
12,17,"6:41","16:25",
12,18,"6:42","16:26",
12,19,"6:43","16:26",
12,20,"6:43","16:27",
12,21,"6:44","16:27",
12,22,"6:44","16:27",
12,23,"6:45","16:28",
12,24,"6:45","16:29",
12,25,"6:46","16:29",
12,26,"6:46","16:30",
12,27,"6:46","16:30",
12,28,"6:47","16:31",
12,29,"6:47","16:32",
12,30,"6:47","16:32",
12,31,"6:48","16:33"
);
myHit = 0;
myLastCnt = myTbl.length / 4;

function myWrite(){
   myD     = new Date();
   myMonth = myD.getMonth()+1;
   myDate  = myD.getDate();

   for(i=0; i<myLastCnt; i++){
      if (myTbl[i*4]   == myMonth &&
          myTbl[i*4+1] == myDate){
         document.write("日の出 ");
         document.write(myTbl[i*4+2]);
         document.write(" / 日の入り ");
         document.write(myTbl[i*4+3]);
         document.write("<br>");
         myHit++;
      }
   }
   // イベントが何もなかった時の処理
   if (myHit == 0){
      document.write("");
   }
}

myWrite();
