// JavaScript Document
function openMadoriwins(plan){
		url = "plans/plan_"+plan+".html"
		xp = (screen.width - 720);
		yp = 0;
		var newwin=window.open(url,plan,"width=670,height=655,left="+xp+",top="+yp+",directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");
		newwin.focus();
	}
function openMadoriwins2(plan2){
		url = "plans/plan_"+plan2+".html"
		xp = (screen.width - 920);
		yp = 0;
		var newwin=window.open(url,plan2,"width=870,height=655,left="+xp+",top="+yp+",directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");
		newwin.focus();
}
function openOutwins(){
		url = "outline.html"
		xp = (screen.width - 920);
		yp = 0;
		tate=screen.height-60
		var newwin=window.open(url,"out","width=770,height="+tate+",left="+xp+",top="+yp+",directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");
		newwin.focus();
}
function openOutwins2(){
		url = "../outline.html"
		xp = (screen.width - 920);
		yp = 0;
		tate=screen.height-60
		var newwin=window.open(url,"out","width=770,height="+tate+",left="+xp+",top="+yp+",directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");
		newwin.focus();
}
function openMapwins(){
		url = "map.html"
		xp = (screen.width - 700);
		yp = 0;
		var newwin=window.open(url,"map","width=630,height=710,left="+xp+",top="+yp+",directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");
		newwin.focus();
}
function openTorewins(){
		url = "tore.html"
		xp = (screen.width - 700);
		yp = 0;
		var tore=window.open(url,"tore","width=680,height=746,left="+xp+",top="+yp+",directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");
		tore.focus();
}
function openTorecowins(){
		url = "toreco.html"
		xp = (screen.width - 500)/2;
		yp = 0;
		var toreco=window.open(url,"toreco","width=520,height=450,left="+xp+",top="+yp+",directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");
		toreco.focus();
}
function changeLife(no){
icns.location.href='lifeinfo_data/life_icn'+no+ '.html';
maps.location.href='lifeinfo_data/maps/map'+no+'.gif';
}
function changeLivingPh(no){
model.location.href='img/main_living'+no+ '.jpg';
}
function changeBedroom(no){
model.location.href='img/main_bedroom'+no+ '.jpg';
}
function changeKitchen(no){
model.location.href='img/main_kitchen'+no+ '.jpg';
}
function changeBath_san(no){
model.location.href='img/main_bath_san'+no+ '.jpg';
}
function changeCor_str(no){
model.location.href='img/main_cor_str'+no+ '.jpg';
}
function changeGarden(no){
model.location.href='img/main_garden'+no+ '.jpg';
}
function openMgwins(){
		url = "mg_map.html"
		xp = (screen.width - 610)/2;
		yp = 0;
		var newwin=window.open(url,"map","width=630,height=900,left="+xp+",top="+yp+",directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");
		newwin.focus();
}

function openMgwins2(){
		url = "../mg_map.html"
		xp = (screen.width - 610)/2;
		yp = 0;
		var newwin=window.open(url,"map","width=640,height=550,left="+xp+",top="+yp+",directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");
		newwin.focus();
}






