<!--
//Open viewer in appropriate sized windows and center on screen
function openViewer(strViewer)
{
	// Initialise defaults
	var strScroll = "no";

	//Get viewer properties
	switch (strViewer)
	{
		case "vt":
			var strID = document.getElementById("vtid").childNodes[0].nodeValue;
			var intWidth = 400, intHeight = 355;
			var strURL = "http://www.gba011.contentcollector.com/dining_in_kent/" + strID + "/vt/vt.html";
			break;

		case "fp":
			var intWidth = 685, intHeight = 495;
			var strURL = "fp/fp.html";
			break;

		case "pb":
			var intWidth = 530, intHeight = 512;
			var strURL = "pb/pb.html";
			break;

		case "ss":
			var intWidth = 530, intHeight = 597;
			var strURL = "ss/ss.html";

			// Check screen size
			if (screen.height < 700)
			{
				var strScroll = "yes";
				intWidth = 550, intHeight = 497;
			}

			break;
	}

	//Pass project name for EAF feature
	//{ strURL += "?name=The Great House - Hawkhurst"; }
	{ strURL += "?name=" + document.getElementById("header").childNodes[0].nodeValue; }
	
	//Get center co-ordinates
	var intLeft = (screen.width) ? (screen.width - intWidth) / 2 : 0;
	var intTop = (screen.height) ? (screen.height - intHeight) /2 : 0;

	//open viewer window
	var strSettings = "height=" + intHeight + ",left=" + intLeft + ",top=" + intTop + ",width=" + intWidth + ",resizeable=0,scrollbars=" + strScroll;
	window.open(strURL, "_blank", strSettings)
}
//-->
