﻿// Basic JavaScript Document
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);

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);


// Swap Image JavaScript Document
//Check Browser
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName == "Netscape" && bVer >= 3) ||
     (bName == "Microsoft Internet Explorer" && bVer >= 4) ||
     (bName == "Safari" && bVer >= 1) ||
     (bName == "Opera" && bVer >= 5))
{swapImage = true;
}else{
 swapImage = false;
}


// Btn Mouse Over Check
    function imgAct(imgName) {
if (swapImage) {
        imgOn = eval(imgName + "_o.src");
        document[imgName].src = imgOn;
    }
}
// Btn Mouse Out Check
    function imgInAct(imgName) {
if (swapImage) {
        imgOff = eval(imgName + ".src");
        document[imgName].src = imgOff;
    }
}


//ブラウザウィンドウを開く
function MM_openBrWindow(target) { //v2.0
var target;
var winOption;
var maxH = screen.availHeight;
var H =maxH*0.8;
if(target == 'termofuse') {
	window.open('termofuse.asp','termofuse','status=yes,scrollbars=yes,resizable=yes,width=551,height='+H+'');
}
}