/*------------------------------------------------------
 Collection Window Open
------------------------------------------------------*/
//ウィンドウをフルスクリーンにします。

var ms = navigator.appVersion.indexOf("MSIE");
var ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
var nesc = navigator.appName.lastIndexOf("Netscape");
var nesc4 = (nesc >= 0) && (parseInt(navigator.appVersion.substring(0,2)) >= 4);

function fullscreen1(){
	if (nesc4){
    	newwindow = window.open("collection/index.html","self",
"scrollbars,width=" + window.screen.width + ",height=" + window.screen.height);
		newwindow.moveTo(0,0);
		newwindow.focus();

	}else if (ie4){
		window.open("collection/index.html","self","fullscreen=yes");

	}else{
		location.href="collection/index.html";
	}
}

function fullscreen2(){
	if (nesc4){
    	newwindow = window.open("../collection/index.html","self",
"scrollbars,width=" + window.screen.width + ",height=" + window.screen.height);
		newwindow.moveTo(0,0);
		newwindow.focus();

	}else if (ie4){
		window.open("../collection/index.html","self","fullscreen=yes");

	}else{
		location.href="../collection/index.html";
	}
}


/*------------------------------------------------------
 Map Window Open
------------------------------------------------------*/
function OpenMap(map){
newWin = window.open(map, 'MAP', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=480,height=600');
newWin.focus();
}

