// Pop-up windows
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function win_open(win_name, where, type_val) {
	var win_type = new Array();

	
	// HOA Login
	win_type[0]="menubar=no,scrollbars=no,toolbar=no,resizable=no,width=325,height=325";	
	// area map
	win_type[1]="menubar=no,scrollbars=no,resizable=yes,width=990,height=600";
	// siteplan
	win_type[2]="menubar=no,scrollbars=yes,resizable=yes,width=990,height=600";
	// Vtours
	//win_type[3]="menubar=no,scrollbars=no,resizable=no,width=410,height=330";
	//
	//win_type[4]="menubar=yes,scrollbars=yes,resizable=yes,width=825,height=425";
	//
	//win_type[5]="menubar=yes,scrollbars=yes,resizable=yes,width=825,height=425";
	//
	// video popup
	win_type[6]="menubar=no,scrollbars=no,resizable=no,width=650,height=480";

	
	win_name = window.open(where, win_name, win_type[type_val]);
	win_name.focus();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  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);

function popUp(URL) {
day = new Date();
id = day.getTime();

var win_name_2 = window.open(URL, 'video', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=650,height=630,left = 315,top = 157');
win_name_2.focus();

/*
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=650,height=620,left = 315,top = 157');");
*/
}