

/* page up
----------------------------------------------- */
function pageup() {
	if (document.all) { posi = document.body.scrollTop; }
	else { posi = window.pageYOffset; }
	moveObje(posi);
}
function moveObje(position) {
	move = position / 10;
	point = parseInt(position - move);
	scrollTo(0,point);
	if (point > 0) { setTimeout("moveObje(point)",1); }
}


/* 表示位置固定
----------------------------------------------- */
function floatbt() {
	var bt = document.getElementById("spot");
	if (document.all) {
		bt.style.pixelLeft = (document.body.clientWidth / 2) + 405;
		bt.style.pixelTop = document.body.scrollTop + 150;
	}
	else {
		bt.style.left = (innerWidth / 2) + 405 + "px";
		bt.style.top = window.pageYOffset + 150 + "px";
	}
	if (bt.style.display == "none") { bt.style.display = "block"; }
	setTimeout("floatbt()", 1);
}
