function PDG_openBrWindow(theURL,winName,winWidth, winHeight, scroll) { //v2.0
  var winLeft = (screen.width-winWidth)/2;
  var winTop = (screen.height-winHeight)/2;
  var features ='width='+winWidth+', height='+winHeight+', left='+winLeft+', top='+winTop+', scrollbars='+scroll+', resizable=no';

  window.open(theURL,winName,features);
}
function MM_openBrWindow(theURL,winName,winWidth, winHeight, scroll) { //v2.0
  var winLeft = (screen.width-winWidth)/2;
  var winTop = (screen.height-winHeight)/2;
  var features ='width='+winWidth+', height='+winHeight+', left='+winLeft+', top='+winTop+', scrollbars='+scroll+', resizable=no';

  window.open(theURL,winName,features);
}

function ShowRegion(r) {
  var Regions = new Array('3d', 'videos', 'photos', 'map', 'plans');
  
  for (x in Regions) {
	//alert(Regions[x]);
    if (Regions[x] == r) {
	//alert('r' + r);
	  document.getElementById(Regions[x] + '_content').style.display='block';
	} else {
	//alert(Regions[x]);
	  document.getElementById(Regions[x] + '_content').style.display='none';
	}
  }
  //alert('aa');

  //r1.style.display='block';
  //r2.style.display='none';
}
//------------------------------------------------------




