if(self.location==top.location || self.name != "sakura")	{location.replace("/");}
function head()	{
	document.write('<head><title>Ｎｅｗ　Ｆｒｏｎｔｉｅｒ</title>');
	document.write("<meta http-equiv=Content-Type content='text/html; charset=big5'>");
	document.write('<link href=/newfro.css type=text/css rel=stylesheet>');
	document.write('<script src=/js/cookie.js></script>');
	document.write('</head>');
	document.write('<body>');

	document.write("<table style=width:770 border=0 align=center><tr>");
	document.write('<td style=width:110><img src=/img/sakura.gif></td>');
	document.write('<td style=width:270;font-size:12 valign=top align=center><br><img src=/img/title.gif><br>∼關於丹下櫻的小倉庫∼</td>');
	document.write('<td align=center style=width:340>');

	// --- Menu - S
	var tit=new Array();
	var url=new Array();
	tit[0]="回到主頁";
	url[0]="href=/web/";

	tit[1]="個人簡介";
	url[1]="href=/web/sakura.htm";

	tit[2]="詳細資料";
	url[2]="href=/seiyuu.pl";

	tit[3]="歌曲下載";
	url[3]="href=/song.pl";

	tit[4]="討論板";
	url[4]="href=/kbbs/";

	tit[5]="交互連結";
	url[5]="href=/link.htm";

	tit[6]="休閒娛樂";
	url[6]="href=/web/game.htm";

	tit[7]="照片集";
	url[7]="href=/pic.pl";

	tit[8]="來信 NewFrotier";
	url[8]="href=mailto:webmaster@kujaxd.com";

	document.write("<table style=width:100%><tr>");
	for(i=0;i<tit.length;i++)	{
		if(!(i%3))	{document.write("</tr><tr>");}
		document.write("<td align=center class=cell style=width:33% onmouseover=mover(this) onmouseout=mover(this)><a "+url[i]+" style=width:100%>"+tit[i]+"</a></td>");
		}
	document.write("</tr></table>");
	// --- Menu - E

	document.write('</td></tr></table>');

	document.write('<table style=width:770 border=0 align=center><tr><td class=cell style=font-size:1>&nbsp;</td></tr><tr><td>');
	}

function end()	{
	openDay();
	document.write("</td></tr><tr><td class=cell style=font-size:1>&nbsp;</td></tr></table>");

	document.write('<table style=font-size:12;width:770 class=f align=center>');
	document.write('<tr><td><i><b style=font-size:14;cursor:hand class=o onclick=top.location="http://sakura.kujaxd.com/">New Frontier</b>　負責人︰Ｋｕｊａ　個人主頁︰<font class=f onclick=window.open("http://kujaxd.com/") style=cursor:hand>http://kujaxd.com/</font>　開始營運日期︰2001年11月3日　已經運行︰'+dd+'日</i></td>');
	document.write('<td align=right valign=top><img src=http://kujaxd.com/cgi-bin/counter/?i=sakura&c=f77f79 width=90 height=16><br><img src=/img/left.gif onclick=self.history.go(-1) style=cursor:hand onmouseover=window.status="上一頁" alt="上一頁"><img src=/img/fav.gif onclick=window.external.addFavorite("http://sakura.kujaxd.com/","NewFrontier") onmouseover=window.status="加到我的最愛" style=cursor:hand alt="加到我的最愛"><img src=/img/refresh.gif onclick=self.location.reload() style=cursor:hand onmouseover=window.status="重新整理" alt="重新整理"><img src=/img/right.gif onclick=self.history.go(1) style=cursor:hand onmouseover=window.status="下一頁" alt="下一頁"></td>');
	document.write('</tr></table>');

	document.write("</body></html>");
	}

function mover(which)	{
	if(which.style.background != "#ee9999")	{which.style.background="ee9999";}
	else	{which.style.background="e0e0e0";}
	}

function openDay()	{
	var mm;
	var now=new Date();
	dd=now.getDate();
	mm=now.getMonth();
	yy=now.getYear();
//alert(dd+mm+yy);
	var oday=307;
	var oyr=2001;
	var yearfix=0;
	if((yy/4)==Math.floor(yy/4))	{yearfix=1;}

	if(mm==2)	{dd+=31;}
	else if(mm==3)	{dd+=59;}
	else if(mm==4)	{dd+=90;}
	else if(mm==5)	{dd+=120;}
	else if(mm==6)	{dd+=151;}
	else if(mm==7)	{dd+=181;}
	else if(mm==8)	{dd+=212;}
	else if(mm==9)	{dd+=243;}
	else if(mm==10)	{dd+=273;}
	else if(mm==11)	{dd+=304;}
	else if(mm==12)	{dd+=334;}
	if(mm >=2)	{dd+=yearfix;}
	dd-=oday;
	if(dd<0)	{yy--;dd=dd+365+yearfix;}
	yy-=oyr;
	dd+=yy*365;
	}
