function Scr_updown() {
	var Doc=document;
	//横スクロール位置取得,このスクリプトでは使いません
	//var Scr_x=Doc.body.scrollLeft || Doc.documentElement.scrollLeft || Doc.scrollX || 0;
	//縦スクロール位置取得
	var Scr_y=Doc.body.scrollTop || Doc.documentElement.scrollTop || Doc.scrollY || 0;
	Scr_y= Math.ceil(Scr_y*0.1);//Math.ceil()は値を切り上げ（7.24なら8）となります。
	scrollBy(0,-Scr_y);//スクロール位置を、現在位置から指定距離だけ移動します。
	// 画面最上部に移動するまで繰り返す 
	if(Scr_y>0){// 変数 Scr_y が 0 になったら停止します。
		var Tout=setTimeout("Scr_updown()", 20);
	} else {
		clearTimeout(Tout);
	} 
}
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
//			if(images[i].getAttribute("src").match("_off.")){
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
//			}
		}
	}
}
if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
} else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}
