function openPopUp(whichDoc,w,h)
{
	thisTarget ="PopWin";
	paramList = "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=yes," + ",width=" + w + ",height=" + h;
	winPointer = window.open(whichDoc,thisTarget,paramList);
}


function centerWin()
{
	var x,y
	x = ((screen.width - self.outerWidth)/2)
	y = ((screen.height - self.outerHeight)/2)
	self.moveTo(x,y)
}


function openPop(whichDoc) 
{
	w = 551;
	h = 362;
	fileExt = ".asp";
	refPath = "../../virtual_tour/";

	whichDoc = refPath + whichDoc + fileExt;

	thisTarget ="PopWin";
	paramList = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0," + ",width=" + w + ",height=" + h;
	winContactPointer = window.open(whichDoc,thisTarget,paramList);
}


function focusWindow()
{
	// patch for IE4 Mac
	if ( (navigator.appName.indexOf( "Microsoft" ) != -1 ) &&
 	   ( navigator.appVersion.indexOf( "Macintosh" ) != -1 ) && 
 	   ( parseInt(navigator.appVersion) >=4 ) )
  		{
  			// IE4 Mac so don't re-focus Window
 		}else{
 			if (window.focus) 
				{
	 				self.focus();
	 			}
		}
}


function closeWindow()
{
	self.close();
}


function disabledAlert()
{
	alert("This link is currently inactive.");
}