function openWin(wUrl,wName,wWidth,wHeight){
scWidthCenter = screen.availWidth / 2;
scHeightCenter = screen.availHeight / 2;
wOption = "scrollbars=yes,width=" + wWidth + ",height=" + wHeight +
",Left=" + (scWidthCenter - (wWidth / 2))+",top=" + (scHeightCenter
-(wHeight / 2));
window.open(wUrl,wName,wOption);
}

document.write("</style>\n");
function copyYear() {
	year = new Date().getFullYear();
	document.write(year);
}

/* なだらかにスクロールしてページの上部に戻る */
function fBacktoTop() {
  var d=document;
  /* 画面の左端からの距離 */
  var scroll_left=d.body.scrollLeft || d.documentElement.scrollLeft || d.scrollX || 0;
   /* 画面の上端からの距離 */
  var scroll_top=d.body.scrollTop || d.documentElement.scrollTop || d.scrollY || 0;
  // 画面スクロール
    scrollTo(scroll_left/2, scroll_top/2);
    /* 画面最上部に移動するまで繰り返す */
    if(scroll_left>0 || scroll_top>0){
        var f=setTimeout("fBacktoTop()", 30);
    }else{
      clearTimeout(f);
    }
}



function flash_to_java() { 

document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="880" height="450">');
document.writeln('<param name="movie" value="img/top.swf" />');
document.writeln('<param name="quality" value="high" />');
document.writeln('<embed src="img/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="880" height="450"></embed>');
document.writeln('</object>');
document.writeln('');

}