<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
<!-- 
// デフォルト設定 
//  sW:サブウィンドウの幅、     sH:サブウィンドウの高さ 
//  sX:サブウィンドウの位置(X)、sY:サブウィンドウの位置(Y) 
var sW  = '0'; 
var sH  = '0'; 
var sX  = '0'; 
var sY  = '0';

// デスクトップ環境 
//  oW:スクリーン(モニタ)の幅、oH:スクリーン(モニタ)の高さ 
var oW  = window.screen.width; 
var oH  = window.screen.height; 

function subWin(sURL,sName,sOpt){ 
    sW  = sOpt.split(",",2); 
    W   = sW[0].slice(2); 
    H   = sW[1].slice(2); 
    X   = Math.floor( ( oW - W )/2 ); 
    Y   = Math.floor( ( oH - H )/2 ); 
    opt = "' width=" + W + ",height=" + H + ",top=" + Y + ",left=" + X + "'"; 
    sName = window.open(sURL, sName, opt); 
}

function openWindowC(subURL,w,h) {
  x = (screen.width - w) / 2;
  y = (screen.height - h) / 2;
  subWin = window.open(subURL,"subwin",
    "screenX="+x+",screenY="+y+",left="+x+",top="+y+",width="+w+",height="+h);
}
//--> 
<!--
wMargin=4; //画像とウィンドウサイズとのマージン
//指定サイズの新規ウィンドウで画像を開く関数 by Taishi
function openImgWin(imgURL,iWidth,iHeight){
/* 
imgURL=ファイルへのURL
iWidth=画像横幅
iHeight=画像高さ 
*/ 
imageWin = window.open(imgURL, "_blank", 
"width=" + (iWidth+wMargin) + ",height=" + (iHeight+wMargin) + ", resizable=no, directories=no, location=no, menubar=no, scrollbars=no, toolbar=no"); 
}

//a hrefタグを書く関数 by Taishi
/* HTML本体からはこちらを参照する。 
imgURL=ファイルへのURL
iWidth=画像横幅
iHeight=画像高さ
iLinkName=リンクをはる文字列、画像など 
*/
function openImgWinTag(imgURL,iWidth,iHeight,iLinkName){ 
document.writeln("<a href='javascript:openImgWin(\"" + imgURL + "\", " + iWidth + ", " + iHeight + ")'>" + iLinkName + "<\/a>"); 
}
// -->
<!--

/*//////////// フルスクリ−ン幅get用指定用関数   UseFree
========================================================
 Win  n4 n6 moz e4 e5 e6,
 Mac  n4 n6 moz e4.5 e5,
 Linux n4 n6 moz         
========================================================
 使用例  //フルスクリ−ン幅をピクセル単位で取得する
 if(!getScreenWIDTH())alert("新しいブラウザにしてね〜")
 else alert('フルスクリ−ン幅:'+getScreenWIDTH())
 Support http://game.gr.jp/js/
=======================================================*/

  function getScreenHEIGHT(){
    if(!!window.screen)
      return screen.height       //N4,N6,Moz,IE,共用
    else
      return null                //上記以外
  }

/*//////////// フルスクリ−ン高get用指定用関数ここまで */


  function getScreenWIDTH(){
    if(!!window.screen)
      return screen.width        //N4,N6,Moz,IE,共用
    else
      return null                //上記以外
  }

/*//////////// フルスクリ−ン幅get用指定用関数ここまで */

var subwin
function openWindowTV(){
  subwin=window.open('http://www.reafa.com/reafa_snd/reafa_tvtest.html','','left=0,top=0,screenX=0,screenY=0,width='+getScreenWIDTH()+',height='+getScreenHEIGHT()+'')
  subwin.resizeTo(getScreenWIDTH(),getScreenHEIGHT())
}

var subwin
function openWindowTVtest(){
  subwin=window.open('http://www.reafa.com/reafa_snd/reafa_tvtest.html','','left=0,top=0,screenX=0,screenY=0,width='+getScreenWIDTH()+',height='+getScreenHEIGHT()+'')
  subwin.resizeTo(getScreenWIDTH(),getScreenHEIGHT())
}

//-->
