/* Ver.1.04 20021126 update */

// NN4.xのリロード
function MM_reloadPage(init) {
	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);

/* 関数を追加するときはこの行以降に入れてください。 */

// サブウィンドウ(CD紹介)を開く
function openWin(val) {
	if(val == 0) {
		window.open("cd.html","CD","width=600,height=560,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 1) {
		window.open("photo15.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 2) {
		window.open("photo16.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 3) {
		window.open("photo17.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 4) {
		window.open("photo18.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 5) {
		window.open("photo19.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 6) {
		window.open("wnew.html","WhatsNew","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 7) {
		window.open("slide01.html","AYUMI","width=520,height=600,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 8) {
		window.open("photo20.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 9) {
		window.open("photo23.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 10) {
		window.open("photo24.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 11) {
		window.open("photo25.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 12) {
		window.open("photo26.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 13) {
		window.open("photo27.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 14) {
		window.open("photo28.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 15) {
		window.open("photo29.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 16) {
		window.open("photo30.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 17) {
		window.open("photo31.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 18) {
		window.open("photo32.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 19) {
		window.open("photo33.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 20) {
		window.open("photo34.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 21) {
		window.open("photo35.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 22) {
		window.open("photo36.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 23) {
		window.open("photo37.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 24) {
		window.open("photo38.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 25) {
		window.open("photo39.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 26) {
		window.open("photo40.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 27) {
		window.open("photo41.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 28) {
		window.open("photo42.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 29) {
		window.open("photo43.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 30) {
		window.open("photo44.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 31) {
		window.open("photo45.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 32) {
		window.open("photo46.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 33) {
		window.open("photo47.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 34) {
		window.open("photo48.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 35) {
		window.open("photo49.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 36) {
		window.open("photo50.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 37) {
		window.open("photo51.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 38) {
		window.open("photo52.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 39) {
		window.open("photo53.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 40) {
		window.open("photo54.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 41) {
		window.open("photo55.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 42) {
		window.open("photo56.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	} else if(val == 43) {
		window.open("photo57.html","Photo","width=432,height=495,location=no,menubar=no,scrollbars=no,resizable=no");
	}
	
} 

// ブラウザ名取得
function getBrowserName() {
	var aName = navigator.appName.toUpperCase();
	var uName = navigator.userAgent.toUpperCase();

	if (aName.indexOf("NETSCAPE") >= 0) {
		return "nn";
	} else {
		return "ie";
	}
	return "";
}

// OS取得
function getOSType() {
	var RetCode = "";
	var uAgent  = navigator.userAgent.toUpperCase();

	if (uAgent.indexOf("MAC") >= 0) {
		RetCode = "mac";
	} else {
		RetCode = "win";
	}
	return RetCode;
}

// イメージプリロード
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_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_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 jump() {
	location.href = "../index.html";
}
