<!--JavaScript
//元日 １月　１日
//成人の日 １月第２月曜日
//建国記念の日 ２月１１日
//春分の日 *３月２１日
//みどりの日 ４月２９日
//憲法記念日 ５月　３日
//国民の休日 ５月　４日
//海の日 ７月２０日（２００３年から７月第３月曜日）
//敬老の日 ９月１５日（２００３年から９月第３月曜日）
//国民の休日 *９月２２日
//秋分の日 *９月２３日
//体育の日 １０月第２月曜日
//文化の日 １１月　３日
//勤労感謝の日 １１月２３日
//天皇誕生日 １２月２３日

var LastUp = "2004/07/08";

var wagaUp = "2001/10/27";
var customUp = "2002/06/05";
var linkUp = "2004/07/08";
var touringUp = "2002/06/24";
var offUp = "2002/06/26";
var siryoUp = "2004/05/07";

osiday = new Array();
osiurl = new Array();
osimsg = new Array();


	i = -1;

	i = i +1;
	osiday[i] = "2004/07/08";
	osiurl[i] = "http://www.morids.com/monkey/navi/navi.cgi?mode=new_sort";
	osimsg[i] = "Linkに子連れＢＡＪＡさんの<br>ＨＰ「林道大好き! 」<br>を追加しました。<br>";

	i = i +1;
	osiday[i] = "2004/07/07";
	osiurl[i] = "http://www.morids.com/monkey/navi/navi.cgi?mode=new_sort";
	osimsg[i] = "LinkにひろとさんのＨＰ<br>「旅友〜4miniツーリング仲間<br>の出会いサイト〜」<br>を追加しました。<br>";

var maxosi = i;

var myx0=0;
var myy0=0;
var myx;
var myy;
var maximgs = 9;

var now=new Date();
var h=now.getHours();

//イメージの事前読み込み
//if(document.images){
//  movimg=new Array();
//  movimg[0] = new Image();movimg[0].src='board0.gif';
//  movimg[1] = new Image();movimg[1].src='board1.gif';
//  movimg[2] = new Image();movimg[2].src='board2.gif';
//  movimg[3] = new Image();movimg[3].src='board3.gif';
//  movimg[4] = new Image();movimg[4].src='board4.gif';
//  movimg[5] = new Image();movimg[5].src='board5.gif';
//  movimg[6] = new Image();movimg[6].src='board6.gif';
//}

var msg;
    if (h<5) msg="深夜ご苦労さま！";
    else {
         if (h<11) msg="お早う御座います！";
         else {
              if (h<18) msg="こんにちは！！";
              else msg="ようこそ今晩は！！";
              }
         }

function writeosirase()
{
	dt = new Date();
	if (dt.getMonth() == 0) {
		nowdt = ((dt.getYear() - 1)  * 10000) + 1200 + dt.getDate();
		}
	else {
		nowdt = (dt.getYear() * 10000) + (dt.getMonth() * 100) + dt.getDate();
		}
//	document.write(nowdt + "<br>");

	dys = new Array();
	for (i=0; i<=maxosi; i++) {
		dys = osiday[i].split("/");
		dyx = dys[0] + dys[1] + dys[2];
//		document.write(dyx + "<br>");

		if (nowdt < dyx) {
			document.write("<font size=2 color='red'>" + osiday[i] + "</font>");
			if (osiurl[i] != '') {
				document.write("<a href='" + osiurl[i] + "' border=0><img src='./aar.gif' border=0></a>");
				}
			document.write("<br><font size=2>" + osimsg[i] + "</font>");
			}
		}
} 

function qwriteosirase()
{
	dt = new Date();
	if (dt.getMonth() == 0) {
		nowdt = ((dt.getYear() - 1)  * 10000) + 1200 + dt.getDate();
		}
	else {
		nowdt = (dt.getYear() * 10000) + (dt.getMonth() * 100) + dt.getDate();
		}

	dys = new Array();
	for (i=0; i<=maxosi; i++) {
		dys = osiday[i].split("/");
		dyx = dys[0] + dys[1] + dys[2];
//		document.write(dyx + "<br>");

		if (nowdt >= dyx) {
//			document.write("<tr><td>");
			if (osiurl[i] != '') {
				document.write("<a href='" + osiurl[i] + "' border=0><font color='#3cb371'>■</font><font color='red'>" + osiday[i] + "</font></a><br>");
				}
			else {
				document.write("<font color='#3cb371'>■</font><font color='red'>" + osiday[i] + "</font><br>");
				}
			document.write(osimsg[i]);
//			document.write("</td></tr>");
			}
		}
} 

function writemsg()
{
    document.write(msg);
} 
function wLastUp()
{
    document.write(LastUp);
} 
function wwagaUp()
{
    document.write(wagaUp);
} 
function wcustomUp()
{
    document.write(customUp);
} 
function wlinkUp()
{
    document.write(linkUp);
} 
function wtouringUp()
{
    document.write(touringUp);
} 

function woffUp()
{
    document.write(offUp);
} 

function wsiryoUp()
{
    document.write(siryoUp);
} 

function Setimg(lmg,n)
{
    lmg.src = 'ball2.gif';
//	changImg1(n);
	mypopup(n);
}
function Setimgout(lmg)
{
    lmg.src = 'ball.gif';
//	changImg1(0);
	mymouseup();
}

function mypopup(i){
myx=document.body.scrollLeft+event.clientX;
myy=document.body.scrollTop+event.clientY;
document.all["mypop"+i].style.pixelLeft=myx + 100;
document.all["mypop"+i].style.pixelTop=myy;
document.all["mypop"+i].style.display="block";
}

function mymouseup(){
for(i=1;i<(maximgs+1);i++){
document.all["mypop"+i].style.display="none";
}
}

//画像書き換え
function changImg1(imgNoB){
  if(document.images){
    document.board.src=movimg[imgNoB].src
  }
}

function addBM()
{
	theURL = "http://www.hm.aitai.ne.jp/~moriden/monkey/";
	theName= "Mori's Monkey Page(モンキーカスタム)";
	window.external.AddFavorite(theURL,theName);
}

function smessage()
{
document.write("<img src='http://www.morids.com/repo/report.cgi?");
document.write(screen.width);
document.write("x");
document.write(screen.height);
document.write("&amp;");
document.write(document.referrer);
document.write("' width='1' height='1' alt='' />");
}

function esconut()
{
document.write("<img src='http://park1.aeonnet.ne.jp/~mori/cgi-bin/dayx/dayx.cgi?gif<>" + document.referrer + "'>");
}
function MakeArray(n) {
	this.length=n;
	var i;
	for (i=1;i<=n;i++) this[i] = 0;
}
function MakeCalendar() {
	var tdc_str = "<td align='center' nowrap style='font-weight: normal;'>";
	var tdr_str = "<td align='right' nowrap style='font-weight: normal;'>";
	var tdt_str = "<td align='right' nowrap style='background: #e0ffff; border: solid dimgray 1px;font-weight: normal;'>";
	var t=new Date();
	var mt=new MakeArray(12);
	var y,m,d,sum,k,i,j,w,bias,mx;
	mt[1]=31;
	mt[2]=28;
	mt[3]=31;
	mt[4]=30;
	mt[5]=31;
	mt[6]=30;
	mt[7]=31;
	mt[8]=31;
	mt[9]=30;
	mt[10]=31;
	mt[11]=30;
	mt[12]=31;
	y = t.getYear();
	m = t.getMonth()+1;
	d = t.getDate();
	if ((y % 4) == 0 && (y % 100) != 0 || (y % 400) == 0)
		mt[2] = 29;
	else	mt[2] = 28;
	bias = eval(y) + Math.floor((y - 1) / 4)-Math.floor((y - 1) / 100)+Math.floor((y - 1) / 400);
	sum = 0;
	for (k=1;k<=m-1;k++)	sum = sum + mt[k];
	w = (bias + sum) % 7;
	mx = mt[m] + w;
	mx = Math.ceil(mx / 7);
	mx = mx * 7;
	document.write("<table border='0' cellpadding='1' cellspacing='0' bgcolor='#ffffff'>");
	document.write("<tbody>");
	document.write("<tr>");
	document.write("<td colspan='7' width='100%' height='18' align='center' valign='middle' nowrap style='color: #000000; border: solid #996699 1px;font-weight: normal;'>");
	document.write("<font size='1'><div id='ID1f'>");
	document.write(y,"年",m,"月",d,"日<br>");
	document.write("</div></font></td>\n");
	document.write("</tr>");
	document.write("<tr>\n");
	document.write("<td nowrap style='font-weight: normal;'><font color='#ff0000' size='1'>日</font></td>\n");
	document.write("<td nowrap style='font-weight: normal;'><font color='#000000' size='1'>月</font></td>\n");
	document.write("<td nowrap style='font-weight: normal;'><font color='#000000' size='1'>火</font></td>\n");
	document.write("<td nowrap style='font-weight: normal;'><font color='#000000' size='1'>水</font></td>\n");
	document.write("<td nowrap style='font-weight: normal;'><font color='#000000' size='1'>木</font></td>\n");
	document.write("<td nowrap style='font-weight: normal;'><font color='#000000' size='1'>金</font></td>\n");
	document.write("<td nowrap style='font-weight: normal;'><font color='#0000ff' size='1'>土</font></td>\n");
	document.write("</tr>\n");
	for (i = 1; i<=mx; i++) {
		k = (i - 1) % 7;
		j = i - w;
		if (k == 0) document.write("<tr>\n");
		if (j < 1 || j > mt[m]) {
			document.write(tdc_str,"<font size='1'>-</font></td>\n");
			}
		else {
			if (j == d) 	document.write(tdt_str);
			else		document.write(tdr_str);
			if (k == 0) { document.write("<font color='#ff0000' size='1'>"); }
			else { if (k == 6) { document.write("<font color='#0000ff' size='1'>"); }
				else     { document.write("<font color='#000000' size='1'>"); }
				}
			document.write(j,"</font></td>");
			}
		if (k == 6) document.write("</tr>\n");
		}
	document.write("</tbody>");
	document.write("</table>\n");
}
//end-->

