// JavaScript Document
<!--

//print() が使えるブラウザか一応判定
if (navigator.userAgent.match(/msie (\d)/i))
   v = (eval(RegExp.$1) >= 5) ? 1 : 0;
else if (self.innerWidth)
   v = (eval(navigator.appVersion.charAt(0)) >= 4) ? 1 : 0;
else v = 0;

function print_out() {
   if (v) self.print();
   else alert("お使いのブラウザではこの機能は利用できません");
}


//マップ印刷用
function openWin_forPrintMap(W,H,C) {
		 //alert(navigator.appName);
	if (C == 1) {
		scrW=screen.width;
		scrH=screen.height;
		
		openX = ((scrW/2) - (W/2));
		openY = ((scrH/2) - (H/2));
	} else {
		openX = 0;
		openY = 0;
	}

	if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.platform.substr(0,3) == "Mac") {
			//Mac IE用に調整
			printMapWin = window.open("../forPrintMap.html","printMapWin","directories=no,menubar=no,location=no,scrollbars=auto,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
		} else{
			//Win IE用に調整
			printMapWin = window.open("../forPrintMap.html","printMapWin","directories=no,menubar=no,location=no,scrollbars=auto,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
		}
	} else {
	//Netscape用に調整
	printMapWin = window.open("../forPrintMap.html","printMapWin","directories=no,menubar=no,location=no,scrollbars=auto,status=no,width=" + W+ ",height=" + H + ",screenX=" +  openX + ",screenY=" + openY );
	}
}

//コンタクト用
function openWin_contact(W,H,C) {
	if (C == 1) {
		scrW=screen.width;
		scrH=screen.height;
		
		openX = ((scrW/2) - (W/2));
		openY = ((scrH/2) - (H/2));
	} else {
		openX = 0;
		openY = 0;
	}
	if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.platform.substr(0,3) == "Mac") {
			//Mac IE用に調整
			contactWin = window.open("../contact/index.html","contactWin","directories=no,menubar=no,location=no,scrollbars=auto,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
		} else{
			//Win IE用に調整
			contactWin = window.open("../contact/index.html","contactWin","directories=no,menubar=no,location=no,scrollbars=auto,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
		}
	} else {
	//Netscape用に調整
	contactWin = window.open("../contact/index.html","contactWin","directories=no,menubar=no,location=no,scrollbars=auto,status=no,width=" + W+ ",height=" + H + ",screenX=" +  openX + ",screenY=" + openY );
	}
}

//コンタクト　トップから用
function openWin_contactFromTop(W,H,C) {
	if (C == 1) {
		scrW=screen.width;
		scrH=screen.height;
		
		openX = ((scrW/2) - (W/2));
		openY = ((scrH/2) - (H/2));
	} else {
		openX = 0;
		openY = 0;
	}
	if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.platform.substr(0,3) == "Mac") {
			//Mac IE用に調整
			contactWin = window.open("./contact/index.html","contactWin","directories=no,menubar=no,location=no,scrollbars=auto,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
		} else{
			//Win IE用に調整
			contactWin = window.open("./contact/index.html","contactWin","directories=no,menubar=no,location=no,scrollbars=auto,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
		}
	} else {
	//Netscape用に調整
	contactWin = window.open("./contact/index.html","contactWin","directories=no,menubar=no,location=no,scrollbars=auto,status=no,width=" + W+ ",height=" + H + ",screenX=" +  openX + ",screenY=" + openY );
	}
}
//個人情報について用
function openWin_privacy(W,H,C) {
	W = 550;
	H = 550;
	if (C == 1) {
		scrW=screen.width;
		scrH=screen.height;
		
		openX = ((scrW/2) - (W/2));
		openY = ((scrH/2) - (H/2));
	} else {
		openX = 0;
		openY = 0;
	}
	if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.platform.substr(0,3) == "Mac") {
			//Mac IE用に調整
			privacyWin = window.open("../privacy/index.html","privacyWin","directories=no,menubar=no,location=no,scrollbars=1,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
		} else{
			//Win IE用に調整
			privacyWin = window.open("../privacy/index.html","privacyWin","directories=no,menubar=no,location=no,scrollbars=1,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
		}
	} else {
	//Netscape用に調整
	privacyWin = window.open("../privacy/index.html","privacyWin","directories=no,menubar=no,location=no,scrollbars=1,status=no,width=" + W+ ",height=" + H + ",screenX=" +  openX + ",screenY=" + openY );
	}
}

//個人情報について　トップから用
function openWin_privacyFromTop(W,H,C) {
	W = 550;
	H = 550;
	if (C == 1) {
		scrW=screen.width;
		scrH=screen.height;
		
		openX = ((scrW/2) - (W/2));
		openY = ((scrH/2) - (H/2));
	} else {
		openX = 0;
		openY = 0;
	}
	if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.platform.substr(0,3) == "Mac") {
			//Mac IE用に調整
			privacyWin = window.open("./privacy/index.html","privacyWin","directories=no,menubar=no,location=no,scrollbars=1,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
		} else{
			//Win IE用に調整
			privacyWin = window.open("./privacy/index.html","privacyWin","directories=no,menubar=no,location=no,scrollbars=1,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
		}
	} else {
	//Netscape用に調整
	privacyWin = window.open("./privacy/index.html","privacyWin","directories=no,menubar=no,location=no,scrollbars=1,status=no,width=" + W+ ",height=" + H + ",screenX=" +  openX + ",screenY=" + openY );
	}
}
//-->