<!--
function blankopen(url)
{
	var win = window.open(url, 'window', 'width=850,height=700,menubar=no,toolbar=no,scrollbars=yes,status=yes');
}

function handlewindow()
{
	if (window.opener)
	{
		opener.location.href = '../';
		window.close();
	}
	else
	{
		location.href = '../';
	}
}

var scrollTimer;
obj = document.all ? (document.getElementById ? 3 : 2) : (document.getElementById ? 4 : (document.layers ? 1 : 0));

function prevButton()
{
	if(document.referrer.indexOf(document.domain) != -1)
	{
		var prevUrl = document.referrer;
		document.write('<p id="prev"><a href="' + prevUrl + '">前のページへ</a></p>');
	}
	else
	{
		document.write('<p id="noprev">前のページは存在しません</p>');
	}
}

function toA(idn)
{
	if(!idn) idn = "top";

	if(obj == 1 || obj == 2 || obj == 3 || obj == 4)
	{
		frameScroll(0);
	}
	else
	{
		location.hash = idn;
	}
	return false;
}

function frameScroll(toY)
{
	if(scrollTimer) clearTimeout(scrollTimer);
	if(!toY || toY < 0) toY = 0;
	nowY = 0 + getOffsetY();


	nowX = 0 + getOffsetX();
	nowY += (toY - nowY) * 0.2;
	if(Math.abs(toY - nowY) <= 0.5)
	{
		nowY = toY;
	}

	window.scroll(nowX, nowY);

	if(Math.abs(nowY - toY) < 0.5)
	{
		clearTimeout(scrollTimer);
	}
	else
	{
		scrollTimer = setTimeout("frameScroll("+toY+")", 30);
	}
}

function getOffsetX()
{
	if(obj == 2 || obj == 3) return document.documentElement.scrollLeft || document.body.scrollLeft;
	else if(obj == 1 || obj == 4) return window.pageXOffset;
}

function getOffsetY()
{
	if(obj == 2 || obj == 3) return document.documentElement.scrollTop || document.body.scrollTop;
	else if(obj == 1 || obj == 4) return window.pageYOffset;
}

//FOROLDBROWSERS-->