

//ポップアップウィンドウ　ここから

///////////////////////////////////////////////////////////

//新規Windowを開く

function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}



//ポップアップウィンドウ　ここまで

///////////////////////////////////////////////////////////





//画面スクロール　ここから

///////////////////////////////////////////////////////////

//スクロール

function getScroll(){

	var x, y;

	if(document.all !== void 0){ // IE4, IE5, IE6

		x = document.body.scrollLeft;

		y = document.body.scrollTop;

	}else if(document.layers !== void 0 || (navigator.userAgent.indexOf("Opera") != -1 || window.opera !== void 0)){ // NN4, Opera6

		x = window.pageXOffset;

		y = window.pageYOffset;

	}else if(navigator.userAgent.indexOf("Gecko") != -1){ // NS6, Mozilla

		x = window.scrollX;

		y = window.scrollY;

	}else{

		x = y = 0;

	}

	return {x: x, y: y};

}



var SCROLL ;

var divCountScroller = 30 ;



function scroller( x, y, edging, count ){

	if( count === void 0 ){

		count = 0 ;

		SCROLL = getScroll();

	}



	if( count++ < divCountScroller ){

		var c = count/divCountScroller ;

		var nx = SCROLL.x+( x-SCROLL.x )*( c+edging/(100*Math.PI)*Math.sin( Math.PI*c ) );

		var ny = SCROLL.y+( y-SCROLL.y )*( c+edging/(100*Math.PI)*Math.sin( Math.PI*c ) );

		

		window.scrollTo( nx, ny );

		setTimeout( "scroller("+x+","+y+","+edging+","+count+");", 3 );

	}



}



//画面スクロール　ここまで

///////////////////////////////////////////////////////////

//Netscapeブラウザ対応

///////////////////////////////////////////////////////////

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


//Netscapeブラウザ対応　ここまで
