<!--
//******************************
//	通常のロールオーバー
//******************************

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}





//==============================================================================
//	ポップアップウィンドウ設定
//==============================================================================

function popup(loc,width,height,scrl) {
	var slush = loc.lastIndexOf("/");
	var piliod = loc.lastIndexOf(".");
	var namae = loc.substring(slush+1, piliod);
	//window.alert(slush+'と'+piliod+'と'+namae);
	var myWindow = window.open(loc, namae, 'resizable=0,toolbar=0,scrollbars='+scrl+',status=1,width='+width+',height='+height);
	if (myWindow.focus!=null) {
		myWindow.focus();
	}
}

function popup2(loc) {
	var myWindow = window.open(loc, 'photo', 'resizable=1,toolbar=1,scrollbars=1,status=1,fullscreen=0');
	if (myWindow.focus!=null) {
		myWindow.focus();
	}
}


function popup1(loc) {
	var myWindow = window.open(loc, 'art', 'resizable=1,toolbar=1,scrollbars=1,status=1,width=600,height=600,');
	if (myWindow.focus!=null) {
		myWindow.focus();
	}
}

//==============================================================================
//	Netscape（Mac）でリサイズした際の以下のバグを防ぐスクリプト
//		・CSSの無効化
//		・document.writeでの書き込みの消去
//==============================================================================

// fix the resize issue in ns4
var uNC4=(navigator.appVersion.charAt(0)<=4 && navigator.appName.charAt(0) == "N" && navigator.appVersion.indexOf("Mac") >= 0);	//MacのNN4以下の人
if (uNC4) { 
origWidth = innerWidth; 
origHeight = innerHeight; 
} 

function handleResize() { 
if (innerWidth != origWidth || innerHeight != origHeight) 
location.reload(); 
} 

if (uNC4) {onresize = handleResize; }

//--> 

