myOP = (navigator.userAgent.indexOf("Opera",0) != -1) ? 1 : 0 ;
myIE = ((navigator.appName=="Microsoft Internet Explorer")&&(myOP==0))?1:0;
myNS = ((navigator.appName=="Netscape") && (myOP==0)) ? 1 : 0 ;
function IsGecko(){
    if(navigator){
        if(navigator.userAgent){
            if(navigator.userAgent.indexOf("Gecko/") != -1){
                return 1;
            }
        }
    }
    return 0;
}
function myScroll(){
   if (myIE == 1){
      myY = document.body.scrollTop ;   // Ｙ座標を取得(IE)
	  document.all["menu"].style.top = myY; // レイヤーのＹ座標を同じにする
   }else{
　　myver = IsGecko();
      if (myver == 1){ //NN7.0など
											 d = document.getElementById("menu");
     　　 myY = window.pageYOffset;         // Ｙ座標を取得(NS,OP)
            d.style.left = 0;
            d.style.top = myY;
      }else{　　//NN4.7など
     　　 myY = window.pageYOffset;         // Ｙ座標を取得(NS,OP)
	           document.layers["menu"].moveTo(0,myY); // レイヤーのＹ座標を同じにする
      }
   }
   setTimeout("myScroll()",10);         // ぐるぐる監視する
}