var speed, currentpos=curpos1=0,alt=1,curpos2=-1
function initialize(){
if (window.parent.scrollspeed!=0){
speed=window.parent.scrollspeed
scrollwindow()
}
}
function scrollwindow(){
temp=(document.all)? document.body.scrollTop : window.pageYOffset
alt=(alt==0)? 1 : 0
if (alt==0)
curpos1=temp
else
curpos2=temp
window.scrollBy(0,speed)
}
setInterval("initialize()",10)

function jumpMenu2(){
location=(document.link2.list2.options
[document.link2.list2.selectedIndex].value);
}
function jumpMenu2_1(){
location=(document.link2_1.list2_1.options
[document.link2_1.list2_1.selectedIndex].value);
}
function jumpMenu2_2(){
location=(document.link2_2.list2_2.options
[document.link2_2.list2_2.selectedIndex].value);
}
function jumpMenu2_3(){
location=(document.link2_3.list2_3.options
[document.link2_3.list2_3.selectedIndex].value);
}
function jumpMenu2_4(){
location=(document.link2_4.list2_4.options
[document.link2_4.list2_4.selectedIndex].value);
}
function jumpMenu2_5(){
location=(document.link2_5.list2_5.options
[document.link2_5.list2_5.selectedIndex].value);
}
function jumpMenu2_6(){
location=(document.link2_6.list2_6.options
[document.link2_6.list2_6.selectedIndex].value);
}
function jumpMenu2_7(){
location=(document.link2_7.list2_7.options
[document.link2_7.list2_7.selectedIndex].value);
}
function jumpMenu2_8(){
location=(document.link2_8.list2_8.options
[document.link2_8.list2_8.selectedIndex].value);
}
function jumpMenu2_9(){
location=(document.link2_9.list2_9.options
[document.link2_9.list2_9.selectedIndex].value);
}
<!--スクロールページトップ-->
var strApp=navigator.appName;
var strVer=navigator.appVersion;

var Mac=strVer.indexOf('Mac',0)!=-1;
var Win=strVer.indexOf('Win',0)!=-1;
var IE=strApp.indexOf("Microsoft")!=-1;
var NN=strApp.indexOf("Netscape")!=-1;
var Vmajor=parseInt(strVer);
var Vminor=parseFloat(strVer);
var MacIE5=((Mac && strVer.indexOf('MSIE 5')!=-1)||(Mac && IE && Vmajor>4));
var MacIE4=(Mac && strVer.indexOf('MSIE 4.')!=-1);
var MacIE3=(Mac && strVer.indexOf('MSIE 3.')!=-1);

function getScrlLeft(){
	if(IE) return document.body.scrollLeft;
	else if(window.pageXOffset) return window.pageXOffset;
	else return 0;
}

function getScrlTop(){
	if(IE) return document.body.scrollTop;
	else if(window.pageYOffset) return window.pageYOffset;
	else return 0;
}

var tID;
function pageScrl(toX,toY,frms,cuX,cuY){
	if(tID) clearTimeout(tID);
	if(!toX || toX<0) toX=0;
	if(!toY || toY<0) toY=0;
	if(!cuX) cuX=0+getScrlLeft();
	if(!cuY) cuY=0+getScrlTop();

	cuX+=(toX-getScrlLeft())/frms;
	if(cuX<0) cuX=0;
	cuY+=(toY-getScrlTop())/frms;
	if(cuY<0) cuY=0;
	var posX=Math.floor(cuX);
	var posY=Math.floor(cuY);
	window.scrollTo(posX,posY);
	if(posX!=toX || posY!=toY) tID=setTimeout("pageScrl("+toX+","+toY+","+frms+","+cuX+","+cuY+")",16);
}

function topscrl(){
	if(!MacIE3 && !MacIE4 && !NN && window.scrollTo || NN && (Vminor>=4.75) && window.scrollTo){
		pageScrl(0,0,4);
	}else{
 		location.hash="top";
	}
}
