
//
//<hr title="today">
//<p>
//<strong><span style="font-size: 10pt;">
//<a name="today">today</a>
//<a href="prev">▼</a>
// title
//<a href="next">▲</a>
//</span></strong>
//</p>
//
function nothing() {}

function popUpHarbot()
{
	window.open("http://homepage1.nifty.com/akaki/harbot.html", "Menu",'toolbar=0,location=0,directories=0, status=0,menubar=0,scrollbars=0,resizable=0, width=160,height=335');
}

function	writeMonthlyIndex()
{
	var	q	=	'"';
	document.write("<div style=" + q + "font-size: x-small;" + q + '>');
	document.write("</div>");
}
//Another Diary TOPICS へのリンクを書く
//	year  年 "2002"
//	month 月 "02"
//	today 今日の日付、"030228"
//
//<p>
//<a href="./topics/2003/03/030303topics.html">
//<span class="check">&gt;&gt;まだある...</span></a> | <a href="#top">&gt;&gt;TOP</a></p>
//
function	writeDailyTopics( year, month, today )
{
	var	c		=	'"';
	var	p		=	'<p>';
	var	pEnd	=	'</p>';
	var	goTopicsRef	=	"<a href=" + c + "./topics/" + year + "/" + month + "/" + today + "topics.html" + c + ">";
	var	goTopics	=	"<span class=" + c + "check" + c + ">&gt;まだある...</span></a>";
	var	goAAPRef	=	"<a href=" + c + "./topics/" + year + "/" + month + "/" + year.substring(2,4) + month + "aap.html" + c + ">";
	var	goAAP	=	"&gt;&gt;今月のA.A.P.</a>";
	var	goTop		=	"<a href=" + c + "#top" + c + ">&gt;先頭へ</a>";

	document.write(p);
	document.write(goTopicsRef);
	document.write(goTopics);
//	document.write("|");
//	document.write(goAAPRef);
//	document.write(goAAP);
	document.write("|");
	document.write(goTop);
	document.write(pEnd);
}
//	例)blog-date-20050701.html
//	"blog-date-" + year 
//	@param	year = 2005 month = 07 today = 01
function	writeFC2Topics( year, month, today )
{
	var blog	=	'http://akakit.blog15.fc2.com/';
	var	prefix	=	'blog-date-';
	var	c		=	'"';
	var	p		=	'<p>';
	var	pEnd	=	'</p>';
	var	goTopicsRef	=	"<a href=" + c + blog + prefix + year + month + today + ".html" + c + ">";
	var	goTopics	=	"<span class=" + c + "check" + c + ">&gt;まだある...</span></a>";
	var	goTop		=	"<a href=" + c + "#top" + c + ">&gt;先頭へ</a>";

	document.write(p);
	document.write(goTopicsRef);
	document.write(goTopics);
	document.write("|");
	document.write(goTop);
	document.write(pEnd);
}

//Another Diary 見出し挿入
//	title 見出し
//	today 今日の日付、name="today"
//	prev  昨日の日付  href="#prev"
//	next  明日の日付  href="#next"
function	writeDailyIndex( title, today, prev, next )
{
	var	space	=	" ";
	var	sharp	=	"#";
	var	c	=	'"';
	var	sc	=	'\'';
	var	st	=	"font-size: 10pt;";
	var	last	=	"<a href=" + c + prev + c + " accesskey=" + c + 'l' + c + ">▼</a>";
	var	next	=	"<a href=" + c + next + c + " accesskey=" + c + 'l' + c + ">▲</a>";
	document.write("<hr title=" + c + today + c + ">");
	var	linkedTitle	=	'<a href=' + c + sharp + today + c + '>' + title + '</a>';

	document.write("<p><strong>");

	document.write(last);
	document.write("<a name=" + c + today + c + '>' + today + "</a>" );
	document.write(next);
	document.write(space);
	document.write(linkedTitle);
	document.write("</strong></p>");

}

//ツールチップ表示
function ChipON(id_no,x,y)
{
	var offX = offY = 0;
	var	chip;
	if (document.layers){	//for NN
		chip= document.layers[id_no];
	}
	if (document.all){		//for IE
		if( document.all(id_no) ){
			chip = document.all(id_no).style;
		}
	}
	if (!chip)	return;
	if (chip.visibility.charAt(0) == "v") return;
	if (document.all){
		offX = document.body.scrollLeft;
		offY = document.body.scrollTop;
	}
	chip.visibility = "visible";
	chip.left = x + offX + 5;
	chip.top = y + offY+ 5;
}

//ツールチップ非表示
function ChipOFF(id_no)
{
	var	chip;
	if (document.layers){
		chip= document.layers[id_no];
	}
	if (document.all){
		if( document.all(id_no) ){
			chip = document.all(id_no).style;
		}
	}
	if (!chip)	return;
	chip.visibility = "hidden";
}

  function getMouseX(e){
    if(document.layers)return e.pageX
    if(document.all)   return document.body.scrollLeft+event.clientX
  }
  function getMouseY(e){
    if(document.layers)return e.pageY
    if(document.all)   return document.body.scrollTop+event.clientY
  }
  function moveLAYER(layName,x,y){
    if(document.layers)document.layers[layName].moveTo(x,y)   //NN用
    if(document.all)document.all(layName).style.pixelLeft=x  //IE用
    if(document.all)document.all(layName).style.pixelTop=y   //IE用
  }

  function outputLAYER(layName,html){
    if(document.layers) {                      //NN用
       with(document.layers[layName].document){
         open()
         write(html)
         close()
      }
    }
    if(document.all){                         //IE用
      document.all(layName).innerHTML=html
    }
  }

function showHELP(msg,e){
  //--HELP TABEL
  var msgtbl ='<meta http-equiv="Content-Type" content="text/html; charset=x-sjis">'
      msgtbl+='<table bgcolor=blue border=1><tr><td>'
      msgtbl+='<table bgcolor=#ffffff border=1><tr><td>'
      msgtbl+='<span style="font:12pt Osaka,Arial">'
      msgtbl+=msg
      msgtbl+='</span>'
      msgtbl+='</td></tr></table></td></tr></table>'

  outputLAYER('helplay',msgtbl)
  var offsetx=10 //ヘルプ位置をマウスポインタから左右へ何ピクセル離すか
  var offsety=2  //ヘルプ位置をマウスポインタから上下へ何ピクセル離すか
  moveLAYER('helplay',(getMouseX(e)+offsetx),(getMouseY(e)+offsety))
}
function hideHELP(e){
  moveLAYER('helplay',-100,-100)
  outputLAYER('helplay','')
}
